delegate
delegate copied to clipboard
Event delegation component
consider this example: ``` html ``` The first svg is used as a spritesheet, and the svg inside the button uses that spritesheet to show the circle. ``` js delegate.bind(document,...
As per issue https://github.com/component/delegate/issues/12
Fixes issue #14
A click event will fire even though the button is disabled. The event does not fire on other browsers when the button is disabled. Happens on all versions of IE.
in line: https://github.com/component/delegate/blob/master/index.js#L26 is there a reason why it's not `if (e.delegateTarget) return fn.call(el, e);` ?