delegated-events
delegated-events copied to clipboard
A small, fast delegated event library for JavaScript.
Allowing any `EventTarget` matches the Flow type definitions
Usually event delegator libs (like https://ghub.io/delegate-it) provide target element, capturing the events. That can be useful in #16, #20, #23 etc. The use-case include as well custom elements shadow dom...
Hello! Events firing from within a custom element with a shadow-root by default stop bubbling at said root. This PR makes it so events bubble all the way up, without...
Hi @dgraham! I took into account your comment about the plans for typing (#22) and left only the possibility of specifying custom elements (not only document under hood) for listening....
Also facing: https://github.com/dgraham/delegated-events/issues/16 How about this `document` option which allow: ``` on('click', 'a', fn, { document: iframe.contentDocument }) ```
I'd like to be able to attach events within a child iframe from the parent document js code? This doesn't seem possible in the current implementation. Thoughts?