R
Reactiflux

help-js

✅ – Cory – 19-42 Jan 25

CCory1/25/2023
Why does addEventListener log twice if I manually pass e to the callback, but only logs once if I implicitly pass the event? thinkies
UUUnknown User1/25/2023
4 Messages Not Public
Sign In & Join Server To View
CCory1/25/2023
Ah I see Is this just a problem with arrow funcs?
UUUnknown User1/25/2023
2 Messages Not Public
Sign In & Join Server To View
CCory1/25/2023
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')?
UUUnknown User1/25/2023
4 Messages Not Public
Sign In & Join Server To View
CCory1/25/2023
Gotcha Okay I got it working. As always, thank you so much Tyler! ❤️
UUUnknown User1/26/2023
5 Messages Not Public
Sign In & Join Server To View

Looking for more? Join the community!