@mtgame/core 0.1.61 → 0.1.62
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.
|
@@ -9945,13 +9945,14 @@
|
|
|
9945
9945
|
}
|
|
9946
9946
|
function UntilDestroy(cmpType) {
|
|
9947
9947
|
var original = cmpType.prototype.ngOnDestroy;
|
|
9948
|
-
cmpType.prototype.__componentDestroyed$ = new Subject.Subject();
|
|
9949
9948
|
cmpType.prototype.__decoratorApplied = true;
|
|
9950
9949
|
cmpType.prototype.ngOnDestroy = function () {
|
|
9951
|
-
this.__componentDestroyed$.next();
|
|
9952
|
-
this.__componentDestroyed$.complete();
|
|
9953
|
-
delete this.__componentDestroyed$;
|
|
9954
9950
|
original.call(this);
|
|
9951
|
+
if (this.__componentDestroyed$) {
|
|
9952
|
+
this.__componentDestroyed$.next();
|
|
9953
|
+
this.__componentDestroyed$.complete();
|
|
9954
|
+
delete this.__componentDestroyed$;
|
|
9955
|
+
}
|
|
9955
9956
|
};
|
|
9956
9957
|
}
|
|
9957
9958
|
function getDef(type) {
|