Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Executing these 2 lines will result in "theElement" getting more and more click event listeners. I dont understand.
- document.getElementById('theElement').removeEventListener("click", e => whateverComplexFunction(e));
- document.getElementById('theElement').addEventListener("click", e => whateverComplexFunction(e));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement