✅ – 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
Unknown User
Unknown User480d ago
Message Not Public
Sign In & Join Server To View
Cory
Cory480d ago
Ah I see Is this just a problem with arrow funcs?
Unknown User
Unknown User480d ago
Message Not Public
Sign In & Join Server To View
Cory
Cory480d 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')?
Unknown User
Unknown User480d ago
Message Not Public
Sign In & Join Server To View
Cory
Cory480d ago
Gotcha Okay I got it working. As always, thank you so much Tyler! ❤️
Unknown User
Unknown User479d ago
Message Not Public
Sign In & Join Server To View