change an argument name to make more sense.

This commit is contained in:
trans_soup 2023-07-18 15:19:01 +02:00
parent b7a40a3265
commit 6422b27431

View file

@ -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. // makes a callback function stop being used to listen to an event, and returns that callback function.
export function ignore (event_id) { export function ignore (listener_id) {
const [event_name, index] = event_id; const [event_name, index] = listener_id;
return listeners(event_name).splice(index, 1)[0]; return listeners(event_name).splice(index, 1)[0];
} }