Merge branch 'master' into attachments

This commit is contained in:
thecodrr
2021-10-04 11:56:52 +05:00
3 changed files with 25 additions and 3 deletions

View File

@@ -7,9 +7,9 @@ class EventManager {
this._registry.clear();
}
subscribeMulti(names, handler) {
subscribeMulti(names, handler, thisArg) {
names.forEach((name) => {
this.subscribe(name, handler);
this.subscribe(name, handler.bind(thisArg));
});
}