support reassigning to null from untrack
This commit is contained in:
parent
4e8e9eae26
commit
db5c98a706
2 changed files with 2 additions and 0 deletions
|
@ -45,6 +45,7 @@ export class ViewModel extends EventEmitter {
|
|||
if (this.disposables) {
|
||||
return this.disposables.untrack(disposable);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
dispose() {
|
||||
|
|
|
@ -47,6 +47,7 @@ export class Disposables {
|
|||
if (idx >= 0) {
|
||||
this._disposables.splice(idx, 1);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
dispose() {
|
||||
|
|
Reference in a new issue