ccampbell / gator

Event delegation in Javascript
http://craig.is/riding/gators
492 stars 46 forks source link

Add ability for plugins to override gator callbacks #6

Open ccampbell opened 11 years ago

ccampbell commented 11 years ago

Right now plugins let you override the callbacks that get bound in the browser using addEventListener, but not callbacks bound using gator.on.

For example if you wanted to make a custom type of event and handle it in a specific way you could do that if Gator exposed _addHandler and _removeHandler publicly.

cc @bdougherty