We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c561870 commit 0482c78Copy full SHA for 0482c78
src/eventhandling.ts
@@ -76,7 +76,7 @@ export class EventHandling {
76
_emit (eventName: string, ...args: unknown[]): void {
77
this._validateEvent(eventName);
78
this._handlers[eventName].slice().forEach((handler) => {
79
- handler.apply(this, args);
+ handler(...args);
80
});
81
}
82
0 commit comments