Re: [whatwg/dom] Event delegation via EventListenerOptions (#215)

Option 1 (for bubble and capture) would seem a better fit to the user's existing mental model about how events behave, option 2 is what jQuery was stuck with given the constraints of the current DOM API.

The main concern I'd have is the additional cost and complexity. For GitHub the amount of extra overhead from delegation via jQuery was too much so they [created their own delegation code](https://github.com/dgraham/delegated-events). However, it *only* works for delegation done from `document` which is fine for their use case but not this one.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/215#issuecomment-214083105

Received on Monday, 25 April 2016 01:18:30 UTC