Explorar o código

Clear the resizing timer on dispose

Steven Silvester %!s(int64=8) %!d(string=hai) anos
pai
achega
0a1d7f7a3a
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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();
   }