Re: [whatwg/dom] Improving ergonomics of events with Observable (#544)

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