瀏覽代碼

Modernize notebook/common/undo, tweak inspector ranks.

Afshin Darian 8 年之前
父節點
當前提交
28e86af4ae
共有 2 個文件被更改,包括 7 次插入7 次删除
  1. 2 2
      src/inspector/plugin.ts
  2. 5 5
      src/notebook/common/undo.ts

+ 2 - 2
src/inspector/plugin.ts

@@ -65,13 +65,13 @@ namespace Private {
     {
       className: 'jp-HintsInspectorItem',
       name: 'Hints',
-      rank: 2,
+      rank: 20,
       type: 'hints'
     },
     {
       className: 'jp-DetailsInspectorItem',
       name: 'Details',
-      rank: 1,
+      rank: 10,
       remembers: true,
       type: 'details'
     }

+ 5 - 5
src/notebook/common/undo.ts

@@ -3,11 +3,11 @@
 
 import {
   IDisposable
-} from 'phosphor-disposable';
+} from 'phosphor/lib/core/disposable';
 
 import {
   clearSignalData
-} from 'phosphor-signaling';
+} from 'phosphor/lib/core/signaling';
 
 import {
   IObservableList, IListChangedArgs, ObservableList
@@ -15,10 +15,10 @@ import {
 
 
 /**
- * An object which is JSON-able.
+ * An object which can be serialized to JSON.
  */
 export
-interface IJSONable {
+interface ISerializable {
   /**
    * Convert the object to JSON.
    */
@@ -30,7 +30,7 @@ interface IJSONable {
  * An observable list that supports undo/redo.
  */
 export
-class ObservableUndoableList<T extends IJSONable> extends ObservableList<T> implements IDisposable {
+class ObservableUndoableList<T extends ISerializable> extends ObservableList<T> implements IDisposable {
   /**
    * Construct a new undoable observable list.
    */