From bb013f40c2be71f4e9645a6ee5242b2bb1e2d9d3 Mon Sep 17 00:00:00 2001 From: Isabelle Viktoria Maciohsek Date: Mon, 7 Feb 2022 20:57:34 +0200 Subject: [PATCH] Update javascript-event-bubbling-capturing-delegation.md --- blog_posts/javascript-event-bubbling-capturing-delegation.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blog_posts/javascript-event-bubbling-capturing-delegation.md b/blog_posts/javascript-event-bubbling-capturing-delegation.md index 08afabcf4..9e9f795b6 100644 --- a/blog_posts/javascript-event-bubbling-capturing-delegation.md +++ b/blog_posts/javascript-event-bubbling-capturing-delegation.md @@ -54,7 +54,7 @@ You can use event capturing by applying a third argument to [`EventTarget.addEve ```js // Capture phase ancestors.forEach(a => { - a.addEventListener('click', event => { + a.addEventListener('click', e => { console.log(`Hello from ${e.currentTarget}`); }, true); });