Open max-mapper opened 10 years ago
I played with this a bit and I think this one is my favorite https://www.npmjs.org/package/component-delegate
I think this issue is somewhat inline with my pull request: https://github.com/npm-dom/dom-event/pull/4
e.g. if you have a
ul
full ofli
elements and you dothen it should fire for
ul
and any element that is a descendant oful
jquery works this way using the same
.on
syntax by default, e.g. http://jsfiddle.net/YFF2k/2/ (open console and click on some stuff)there are a number of modules that do this on npm already:
we should probably use dom-delegator cause raynos wrote it :)
the only tricky part is that it would change the default behavior for .on to not only match the element but the element plus all children elements