support reassigning to null from untrack

This commit is contained in:
Bruno Windels 2020-10-13 13:10:27 +02:00
parent 4e8e9eae26
commit db5c98a706
2 changed files with 2 additions and 0 deletions

View File

@ -45,6 +45,7 @@ export class ViewModel extends EventEmitter {
if (this.disposables) {
return this.disposables.untrack(disposable);
}
return null;
}
dispose() {

View File

@ -47,6 +47,7 @@ export class Disposables {
if (idx >= 0) {
this._disposables.splice(idx, 1);
}
return null;
}
dispose() {