- From: Domenic Denicola <notifications@github.com>
- Date: Wed, 13 Dec 2017 16:21:10 +0000 (UTC)
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 13 December 2017 16:21:32 UTC
I think @annevk is remembering an async-ified version, perhaps based on async iterators. But observables are much closer to (really, isomorphic to) the EventTarget model already, so don't have this problem. In particular, they can call their `next` callback in the same turn as the event was triggered, so `e.preventDefault()` will work fine. It really is just A Better addEventListener (TM). ^_^ -- 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/544#issuecomment-351441973
Received on Wednesday, 13 December 2017 16:21:32 UTC