mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-22 22:49:45 +01:00
Merge branch 'master' into attachments
This commit is contained in:
@@ -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));
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user