-
-
Notifications
You must be signed in to change notification settings - Fork 328
Should we accept arrays of event handlers? #855
Archmonger
started this conversation in
Ideas
-
Right now, events can only be single functions. However, in javascript it's possible to bind multiple event listeners to one event.
This discussion is to talk about whether this can/should be implemented in IDOM core during the v2 release cycle.
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment
-
I think the best thing would be to provide a utility for merging event handlers. One already exists, but perhaps we could improve the interface. Previously I think IDOM had an Event object with an add and extend method for this purpose.
For context, React does not have a way to pass arrays of event handlers.
Beta Was this translation helpful? Give feedback.
All reactions
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment