Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple event .on() binding #155

Open
doublejosh opened this issue Oct 3, 2015 · 0 comments
Open

Multiple event .on() binding #155

doublejosh opened this issue Oct 3, 2015 · 0 comments

Comments

@doublejosh
Copy link

Seems that you can't bind multiple events to fire a function on an element. This seems like a pretty standard need. Here's my use-case...

$$('textarea').on('input propertychange change keyup paste', function() {

Gross workarounds required...

$$myText.on('keyup', myFunction);
$$myText.on('change', myFunction);
$$myText.on('input', myFunction);
$$myText.on('propertychange', myFunction);
$$myText.on('paste', myFunction);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant