diff --git a/src/core.mjs b/src/core.mjs index da5cd65..20b44bf 100644 --- a/src/core.mjs +++ b/src/core.mjs @@ -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]; }