Steven Silvester 6 年之前
父節點
當前提交
d90830ba19
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/inspector/src/handler.ts

+ 1 - 1
packages/inspector/src/handler.ts

@@ -25,7 +25,7 @@ export class InspectionHandler implements IDisposable, IInspector.IInspectable {
   constructor(options: InspectionHandler.IOptions) {
     this._connector = options.connector;
     this._rendermime = options.rendermime;
-    this._debouncer = new Debouncer(() => this.onEditorChange, 250);
+    this._debouncer = new Debouncer(this.onEditorChange.bind(this), 250);
   }
 
   /**