From 6422b2743143eb9105d9c0eb407328ac03a36304 Mon Sep 17 00:00:00 2001 From: trans_soup <> Date: Tue, 18 Jul 2023 15:19:01 +0200 Subject: [PATCH] change an argument name to make more sense. --- src/core.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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]; }