Skip to content

Commit 0482c78

Browse files
committed
Remove unnecessary context for event handler calls
1 parent c561870 commit 0482c78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/eventhandling.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export class EventHandling {
7676
_emit (eventName: string, ...args: unknown[]): void {
7777
this._validateEvent(eventName);
7878
this._handlers[eventName].slice().forEach((handler) => {
79-
handler.apply(this, args);
79+
handler(...args);
8080
});
8181
}
8282

0 commit comments

Comments
 (0)