From b53b60e142b455684b4a0025af5ef331a9c0a4bb Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Mon, 29 Jul 2019 10:59:07 +0200 Subject: [PATCH] use correct handler and make test succeed --- src/observable/BaseObservableCollection.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/observable/BaseObservableCollection.js b/src/observable/BaseObservableCollection.js index 87e7c77b..13b059ae 100644 --- a/src/observable/BaseObservableCollection.js +++ b/src/observable/BaseObservableCollection.js @@ -18,7 +18,7 @@ export default class BaseObservableCollection { } return () => { if (handler) { - this._handlers.delete(this._handler); + this._handlers.delete(handler); if (this._handlers.size === 0) { this.onUnsubscribeLast(); }