From 86d5f9b3fa59754593893942955d60c6467210ef Mon Sep 17 00:00:00 2001 From: Isah Abba Ibrahim <38298865+Ibrahim-Isah@users.noreply.github.com> Date: Thu, 29 Jul 2021 22:46:36 +0100 Subject: [PATCH] Corrected function call The function created isn't the function that was called. I corrected the function call --- snippets/addEventListenerAll.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/addEventListenerAll.md b/snippets/addEventListenerAll.md index 37dc180a2..96c94a394 100644 --- a/snippets/addEventListenerAll.md +++ b/snippets/addEventListenerAll.md @@ -18,7 +18,7 @@ const addEventListenerAll = (targets, type, listener, options, useCapture) => { ``` ```js -addAllEventListeners(document.querySelectorAll('a'), 'click', () => +addEventListenerAll(document.querySelectorAll('a'), 'click', () => console.log('Clicked a link') ); // Logs 'Clicked a link' whenever any anchor element is clicked