Przeglądaj źródła

Set the timer value

Steven Silvester 7 lat temu
rodzic
commit
8c6d937f25
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      packages/codemirror/src/editor.ts

+ 1 - 1
packages/codemirror/src/editor.ts

@@ -860,7 +860,7 @@ class CodeMirrorEditor implements CodeEditor.IEditor {
    */
   private _scheduleCheck(): void {
     window.clearTimeout(this._checkTimer);
-    window.setTimeout(() => {
+    this._checkTimer = window.setTimeout(() => {
       let doc =this._editor.getDoc();
       if (doc.getValue() === this._model.value.text) {
         this._handleSyncError();