Closed wokier closed 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
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() {...})
Seems good.
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