浏览代码

Clear the resizing timer on dispose

Steven Silvester 8 年之前
父节点
当前提交
0a1d7f7a3a
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/codemirror/widget.ts

+ 1 - 0
src/codemirror/widget.ts

@@ -47,6 +47,7 @@ class CodeMirrorWidget extends Widget {
    * Dispose of the resources held by the widget.
    */
   dispose(): void {
+    clearTimeout(this._resizing);
     this._editor = null;
     super.dispose();
   }