mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-22 19:14:52 +01:00
support reassigning to null from untrack
This commit is contained in:
parent
4e8e9eae26
commit
db5c98a706
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user