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.
Related Skills:
Software Design
💬 0 comments