DEV Community

Discussion on: The problem with DOM’s event listeners

Collapse
 
ranguna profile image
Luis Pais

I don't understand how the solution would solve the "save and keep track of these parameters" since you'd still need to "save and keep track" of the return value of addEventListener.

Collapse
 
filibit profile image
Filip Biterski • Edited

Well, it's a single variable per subscription, instead of many. Maybe I should have worded it better. :)