mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +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 () => {
|
return () => {
|
||||||
if (handler) {
|
if (handler) {
|
||||||
this._handlers.delete(this._handler);
|
this._handlers.delete(handler);
|
||||||
if (this._handlers.size === 0) {
|
if (this._handlers.size === 0) {
|
||||||
this.onUnsubscribeLast();
|
this.onUnsubscribeLast();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user