Cory
Cory2y ago

✅ – 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
9 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Cory
Cory2y ago
Ah I see Is this just a problem with arrow funcs?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Cory
Cory2y 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 User2y ago
Message Not Public
Sign In & Join Server To View
Cory
Cory2y ago
Gotcha Okay I got it working. As always, thank you so much Tyler! ❤️
reactibot
reactibot2y ago
This question has an answer! Thank you for helping 😄 If you have a followup question, you may want to reply to this thread so other members know they're related. https://discord.com/channels/102860784329052160/565213527673929729/1067892204137349211
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
reactibot
reactibot2y ago
This thread hasn’t had any activity in 12 hours, so it’s now locked. Threads are closed automatically after 12 hours. If you have a followup question, you may want to reply to this thread so other members know they're related. https://discord.com/channels/102860784329052160/565213527673929729/1067892204137349211