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

@jhusain If I may, I believe you're nitpicking a bit too much on that point.

First, the benefits and ergonomics of having the listener removed after the first() operator are much greater than the possible ergonomics lost on preventDefault(). In fact, it's the ergonomics for adding+removing event listeners which would make this API so rich.

Second, when to call preventDefault () would probably depend on *what* you're doing with the stream. For example 

-- 
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-351471623

Received on Wednesday, 13 December 2017 17:59:40 UTC