use correct handler and make test succeed

This commit is contained in:
Bruno Windels 2019-07-29 10:59:07 +02:00
parent 0cf7cb36c4
commit b53b60e142

View file

@ -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();
}