From ff4abbc5ba0ba546feb7e1164b50095d1bd6426c Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Thu, 22 Apr 2021 17:18:07 +0200 Subject: [PATCH] make dispose not fail --- src/observable/map/JoinedMap.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/observable/map/JoinedMap.js b/src/observable/map/JoinedMap.js index 7d099136..e5d0caa7 100644 --- a/src/observable/map/JoinedMap.js +++ b/src/observable/map/JoinedMap.js @@ -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; }