mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-01-11 04:27:40 +01:00
make dispose not fail
This commit is contained in:
parent
4e3127c4cf
commit
ff4abbc5ba
@ -20,6 +20,7 @@ export class JoinedMap extends BaseObservableMap {
|
|||||||
constructor(sources) {
|
constructor(sources) {
|
||||||
super();
|
super();
|
||||||
this._sources = sources;
|
this._sources = sources;
|
||||||
|
this._subscriptions = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
onAdd(source, key, value) {
|
onAdd(source, key, value) {
|
||||||
@ -160,7 +161,7 @@ class SourceSubscriptionHandler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
subscribe() {
|
subscribe() {
|
||||||
this._source.subscribe(this);
|
this._subscription = this._source.subscribe(this);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user