Jelajahi Sumber

Bugfix: closing consoles generated an error because signal scope was incorrect.

Afshin Darian 8 tahun lalu
induk
melakukan
4d48792518
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      src/inspector/plugin.ts

+ 2 - 2
src/inspector/plugin.ts

@@ -59,10 +59,10 @@ class InspectorManager implements IInspector {
   set source(source: Inspector.IInspectable) {
     if (this._source !== source) {
       if (this._source) {
-        this._source.disposed.disconnect(this._onSourceDisposed);
+        this._source.disposed.disconnect(this._onSourceDisposed, this);
       }
       this._source = source;
-      this._source.disposed.connect(this._onSourceDisposed);
+      this._source.disposed.connect(this._onSourceDisposed, this);
     }
     if (this._inspector && !this._inspector.isDisposed) {
       this._inspector.source = this._source;