npm-dom / dom-event

Add/remove DOM events
http://npm.im/dom-event
34 stars 7 forks source link

Fixing #9 #10

Open mattdesl opened 9 years ago

mattdesl commented 9 years ago

It breaks because the result of (element.methodA || element.methodB) is not bound to element.

EDIT: just realized you return callback, any reason for that? I can fix the PR to avoid a breaking change.