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
1 changed files with 2 additions and 2 deletions

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.
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];
}