Pārlūkot izejas kodu

Set the timer value

Steven Silvester 7 gadi atpakaļ
vecāks
revīzija
8c6d937f25
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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();