X-Git-Url: https://git.josue.xyz/?p=dotfiles%2F.git;a=blobdiff_plain;f=.config%2Fcoc%2Fextensions%2Fnode_modules%2Fcoc-prettier%2Fnode_modules%2Frxjs%2Finternal%2FSubscription.js;h=3e60dd1f84af2db57f78ab7c56be9c0bb2977bec;hp=d2d68a5a45f1e525bfd2d797b0ed14e7a1d66639;hb=4d07c77cf4d78cab8639e13ddc3c22495e585b0b;hpb=b3950616b54221c40a7dab9099bda675007e5b6e diff --git a/.config/coc/extensions/node_modules/coc-prettier/node_modules/rxjs/internal/Subscription.js b/.config/coc/extensions/node_modules/coc-prettier/node_modules/rxjs/internal/Subscription.js index d2d68a5a..3e60dd1f 100644 --- a/.config/coc/extensions/node_modules/coc-prettier/node_modules/rxjs/internal/Subscription.js +++ b/.config/coc/extensions/node_modules/coc-prettier/node_modules/rxjs/internal/Subscription.js @@ -10,6 +10,7 @@ var Subscription = (function () { this._parentOrParents = null; this._subscriptions = null; if (unsubscribe) { + this._ctorUnsubscribe = true; this._unsubscribe = unsubscribe; } } @@ -18,7 +19,7 @@ var Subscription = (function () { if (this.closed) { return; } - var _a = this, _parentOrParents = _a._parentOrParents, _unsubscribe = _a._unsubscribe, _subscriptions = _a._subscriptions; + var _a = this, _parentOrParents = _a._parentOrParents, _ctorUnsubscribe = _a._ctorUnsubscribe, _unsubscribe = _a._unsubscribe, _subscriptions = _a._subscriptions; this.closed = true; this._parentOrParents = null; this._subscriptions = null; @@ -32,6 +33,9 @@ var Subscription = (function () { } } if (isFunction_1.isFunction(_unsubscribe)) { + if (_ctorUnsubscribe) { + this._unsubscribe = undefined; + } try { _unsubscribe.call(this); }