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

@annevk concerns about the ability to call preventDefault() when using Promise returning methods are valid. Mutation use cases could be addressed with a ~do~ method which allows side effects to be interleaved.

~~~js
button.on(“click”).do(e => e.preventDefault()).first()
~~~

This method is included in most userland Observable implementations.


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

Received on Wednesday, 13 December 2017 17:04:09 UTC