Skip to content

Commit a8af022

Browse files
authored
Changed rm functions parameter name
it was confusing because i can emit the event with its name but in order to remove it my intelliSense tells me that i can remove it with its name but actually i should remove the event with its returned id.
1 parent 5a73c7a commit a8af022

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ class EventRegister {
5656
return EventRegister.addEventListener(eventName, callback)
5757
}
5858

59-
static rm(eventName) {
60-
return EventRegister.removeEventListener(eventName)
59+
static rm(eventId) {
60+
return EventRegister.removeEventListener(eventId)
6161
}
6262

6363
static rmAll() {

0 commit comments

Comments
 (0)