- From: Tristan Fraipont <notifications@github.com>
- Date: Thu, 16 Dec 2021 21:38:14 -0800
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 17 December 2021 05:38:26 UTC
https://github.com/whatwg/dom/issues/1038#issuecomment-985733476 > that returns a `Promise` that is resolved with `undefined` when the next event type is dispatched. Really? I can't find the rationale for this in this thread, is it to avoid `.preventDefault()` doing nothing and `.currentTarget` being `null`? Not being able to tell what `type` of Event we received which would prevent any use of `Promise.race()`, and not being able to tell on which target it fired nor to get any data from it seems like a bigger problem, no? And to participate in the bikeshedding, I like to call my event promisifier `waitForEvent`, the iterator one could be `waitForEvents`. -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/dom/issues/1038#issuecomment-996452086 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/dom/issues/1038/996452086@github.com>
Received on Friday, 17 December 2021 05:38:26 UTC