addEventListener discards duplicates

addEventListener discards duplicates
TL;DR: Note that in all cases, if you want to remove the handler later, you need to remember it so that you can pass it to removeEventListener.
Longer Read: One of the recent[*] nice DOM changes is that removeEventListener can take an AbortSignal inside its third parameter now.
Read the full story at Devblogs →
Related Skills: Software Design
Wider Reading: roadmap.sh — Software DesignRefactoring Guru — Software DesignCoursera — Software Design

💬 0 comments

No comments yet — be the first to say what you think.