mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +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) {
|
if (this.disposables) {
|
||||||
return this.disposables.untrack(disposable);
|
return this.disposables.untrack(disposable);
|
||||||
}
|
}
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
dispose() {
|
dispose() {
|
||||||
|
@ -47,6 +47,7 @@ export class Disposables {
|
|||||||
if (idx >= 0) {
|
if (idx >= 0) {
|
||||||
this._disposables.splice(idx, 1);
|
this._disposables.splice(idx, 1);
|
||||||
}
|
}
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
dispose() {
|
dispose() {
|
||||||
|
Loading…
Reference in New Issue
Block a user