Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Should we accept arrays of event handlers? #855

Archmonger started this conversation in Ideas
Discussion options

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.

You must be logged in to vote

Replies: 1 comment

Comment options

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.

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /