forked from mystiq/hydrogen-web
use correct handler and make test succeed
This commit is contained in:
parent
0cf7cb36c4
commit
b53b60e142
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue