re: A Guide to Handling Browser Events VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Thanks for sharing.. Just want to add, using arrow function as eventListener callback will make the element lose the this context... var span = ...
 

Budy, sorry but I don't notice any difference in the two snippets ... maybe the latter should be a regular function declaration such as "function(event) {...}" ?
thank you, happy Easter!

 
code of conduct - report abuse