ArcBees / gwtquery

A jQuery clone for GWT, and much more.
MIT License
85 stars 38 forks source link

on and off methods use only one event #278

Closed wokier closed 10 years ago

wokier commented 10 years ago

It would be usefull to be able to bind multiple events to the same handler, as it is available in jquery.

http://api.jquery.com/on/ http://api.jquery.com/off/

a vararg signature would enter in conflict with the selector parameter, but a eventNames list would be fine

manolo commented 10 years ago

Actually gquery allows to pass multiple events like jQuery does if you pass a list of event names separated by spaces

on("click blur", new Function() {...})
wokier commented 10 years ago

Seems good.