change an argument name to make more sense.
This commit is contained in:
parent
b7a40a3265
commit
6422b27431
1 changed files with 2 additions and 2 deletions
|
@ -13,8 +13,8 @@ export function listen (event_name, callback) {
|
|||
}
|
||||
|
||||
// makes a callback function stop being used to listen to an event, and returns that callback function.
|
||||
export function ignore (event_id) {
|
||||
const [event_name, index] = event_id;
|
||||
export function ignore (listener_id) {
|
||||
const [event_name, index] = listener_id;
|
||||
return listeners(event_name).splice(index, 1)[0];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue