evg_observable 2.14.60 → 2.14.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/outLib/Observable.js +2 -2
package/package.json
CHANGED
package/src/outLib/Observable.js
CHANGED
|
@@ -72,7 +72,6 @@ class Observable {
|
|
|
72
72
|
this.killed = true;
|
|
73
73
|
if (!this.process) {
|
|
74
74
|
this.value = null;
|
|
75
|
-
this.unsubscribeAll();
|
|
76
75
|
this.subs.length = 0;
|
|
77
76
|
return;
|
|
78
77
|
}
|
|
@@ -81,7 +80,6 @@ class Observable {
|
|
|
81
80
|
return;
|
|
82
81
|
clearInterval(timer);
|
|
83
82
|
this.value = null;
|
|
84
|
-
this.unsubscribeAll();
|
|
85
83
|
this.subs.length = 0;
|
|
86
84
|
}, 10);
|
|
87
85
|
}
|
|
@@ -101,6 +99,8 @@ class Observable {
|
|
|
101
99
|
return this.subs.length;
|
|
102
100
|
}
|
|
103
101
|
subscribe(observer, errorHandler) {
|
|
102
|
+
if (this.killed)
|
|
103
|
+
return undefined;
|
|
104
104
|
if (!this.isListener(observer))
|
|
105
105
|
return undefined;
|
|
106
106
|
const subscribeObject = new SubscribeObject_1.SubscribeObject(this, false);
|