浏览代码

Address comments.

Ian Rose 8 年之前
父节点
当前提交
0cb084a69e
共有 2 个文件被更改,包括 5 次插入1 次删除
  1. 1 1
      packages/cells/src/widget.ts
  2. 4 0
      packages/fileeditor/src/widget.ts

+ 1 - 1
packages/cells/src/widget.ts

@@ -679,7 +679,7 @@ class MarkdownCell extends Cell {
       signal: this.model.contentChanged,
       timeout: RENDER_TIMEOUT
     });
-    this._monitor.activityStopped.connect(()=>{
+    this._monitor.activityStopped.connect(() => {
       if (this._rendered) {
         this.update();
       }

+ 4 - 0
packages/fileeditor/src/widget.ts

@@ -140,6 +140,10 @@ class FileEditor extends CodeEditorWrapper {
     this.title.label = path.split('/').pop();
   }
 
+  /**
+   * Handle a change to the collaborators on the model
+   * by updating UI elements associated with them.
+   */
   private _onCollaboratorsChanged(): void {
     // If there are selections corresponding to non-collaborators,
     // they are stale and should be removed.