DEV Community

Discussion on: Review. Event dispatcher based on the CustomEvent interface

 
shystruk profile image
Vasyl Stokolosa

removeEventListener required a handler
developer.mozilla.org/en-US/docs/W...
so, you have to call remove for all listeners and pass the handler function