Raynos / dom-delegator

Decorate elements with delegated events
MIT License
58 stars 16 forks source link

Add `mouseover` and `mouseout` events to commonEvents #26

Open malthejorgensen opened 8 years ago

malthejorgensen commented 8 years ago

These seems like common events – why not let them be available by default? (there's probably something I'm missing)

rtsao commented 8 years ago

I think this is likely a performance optimization, but hopefully @Raynos can chime in.

You directly call DOMDelegator.prototype.listenTo if you need to.

For example:

var del = new Delegator();
del.listenTo('mouseover');
del.listenTo('mouseout');