make dispose not fail

This commit is contained in:
Bruno Windels 2021-04-22 17:18:07 +02:00
parent 4e3127c4cf
commit ff4abbc5ba

View file

@ -20,6 +20,7 @@ export class JoinedMap extends BaseObservableMap {
constructor(sources) {
super();
this._sources = sources;
this._subscriptions = null;
}
onAdd(source, key, value) {
@ -160,7 +161,7 @@ class SourceSubscriptionHandler {
}
subscribe() {
this._source.subscribe(this);
this._subscription = this._source.subscribe(this);
return this;
}