✅ – Cory – 19-42 Jan 25

Why does addEventListener log twice if I manually pass e to the callback, but only logs once if I implicitly pass the event? thinkies
UU
Unknown User449d ago
C
Cory449d ago
Ah I see Is this just a problem with arrow funcs?
UU
Unknown User449d ago
C
Cory449d ago
The thing is, I need to pass other arguments to handleContextMenu If I'm creating new functions by doing (e) => handleContextMenu(e) then is it even possible to pass other args like (e) => handleContextMenu(e, 1, 'aaa')?
UU
Unknown User449d ago
C
Cory449d ago
Gotcha Okay I got it working. As always, thank you so much Tyler! ❤️
UU
Unknown User448d ago