mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
use correct handler and make test succeed
This commit is contained in:
parent
0cf7cb36c4
commit
b53b60e142
@ -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 New Issue
Block a user