Afshin Darian 8 роки тому
батько
коміт
6f0edef0fe
1 змінених файлів з 3 додано та 6 видалено
  1. 3 6
      src/common/instancetracker.ts

+ 3 - 6
src/common/instancetracker.ts

@@ -23,15 +23,12 @@ interface IInstanceTracker<T extends Widget> {
    * A signal emitted when the current widget changes.
    *
    * #### Notes
-   * If there is no widget with the focus, then `null` will be emitted.
+   * If the last widget being tracked is disposed, `null` will be emitted.
    */
   currentChanged: ISignal<this, T>;
 
   /**
-   * The current widget.
-   *
-   * #### Notes
-   * If there is no widget with the focus, then this value is `null`.
+   * The current widget is the most recently focused widget.
    */
   currentWidget: T;
 }
@@ -151,7 +148,7 @@ class InstanceTracker<T extends Widget> implements IInstanceTracker<T>, IDisposa
       return;
     }
     if (current && this.has(current)) {
-      // If not state change needs to occur, just bail.
+      // If no state change needs to occur, just bail.
       if (this._currentWidget === current) {
         return null;
       }