-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rename EventTarget#on()
to EventTarget#when()
#161
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Collision with promises .then
could cause some problems - almost the same pronunciation when reading the code, 1 letter difference -> typos, etc.
We could go with |
As a non-native English speaker, in most cases I cannot perceive the difference between them without context. |
Update, I've put an X poll out for this: https://x.com/domfarolino/status/1815458583334842691 to get a feel for how the community feels. |
This comment was marked as off-topic.
This comment was marked as off-topic.
Conversation about naming should be had in #39. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Given the discussion in #39 (comment) and #39 (comment), and the general support for those comments I'm seeing, I'm comfortable moving forward with this PR. I'll merge this PR later today. |
See the discussion in WICG/observable#39, which led to this decision, and WICG/observable#161 for the corresponding spec rename. R=jarhar Bug: 40282760 Change-Id: I9cd744460a3545c74fb34a0418c6ffddc5e6d4e1
See the discussion in WICG/observable#39, which led to this decision, and WICG/observable#161 for the corresponding spec rename. R=jarhar Bug: 40282760 Change-Id: I9cd744460a3545c74fb34a0418c6ffddc5e6d4e1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5730072 Reviewed-by: Joey Arhar <jarhar@chromium.org> Commit-Queue: Dominic Farolino <dom@chromium.org> Cr-Commit-Position: refs/heads/main@{#1340875}
SHA: 9866a5e Reason: push, by domfarolino Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
See the discussion in WICG/observable#39, which led to this decision, and WICG/observable#161 for the corresponding spec rename. R=jarhar Bug: 40282760 Change-Id: I9cd744460a3545c74fb34a0418c6ffddc5e6d4e1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5730072 Reviewed-by: Joey Arhar <jarhar@chromium.org> Commit-Queue: Dominic Farolino <dom@chromium.org> Cr-Commit-Position: refs/heads/main@{#1340875}
…get#when(), a=testonly Automatic update from web-platform-tests DOM: Rename EventTarget#on() to EventTarget#when() See the discussion in WICG/observable#39, which led to this decision, and WICG/observable#161 for the corresponding spec rename. R=jarhar Bug: 40282760 Change-Id: I9cd744460a3545c74fb34a0418c6ffddc5e6d4e1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5730072 Reviewed-by: Joey Arhar <jarhar@chromium.org> Commit-Queue: Dominic Farolino <dom@chromium.org> Cr-Commit-Position: refs/heads/main@{#1340875} -- wpt-commits: c4e3d193ad0d0e708ad2f252a245c368df098c6e wpt-pr: 47237
|
…get#when(), a=testonly Automatic update from web-platform-tests DOM: Rename EventTarget#on() to EventTarget#when() See the discussion in WICG/observable#39, which led to this decision, and WICG/observable#161 for the corresponding spec rename. R=jarhar Bug: 40282760 Change-Id: I9cd744460a3545c74fb34a0418c6ffddc5e6d4e1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5730072 Reviewed-by: Joey Arhar <jarhar@chromium.org> Commit-Queue: Dominic Farolino <dom@chromium.org> Cr-Commit-Position: refs/heads/main@{#1340875} -- wpt-commits: c4e3d193ad0d0e708ad2f252a245c368df098c6e wpt-pr: 47237
…get#when(), a=testonly Automatic update from web-platform-tests DOM: Rename EventTarget#on() to EventTarget#when() See the discussion in WICG/observable#39, which led to this decision, and WICG/observable#161 for the corresponding spec rename. R=jarhar Bug: 40282760 Change-Id: I9cd744460a3545c74fb34a0418c6ffddc5e6d4e1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5730072 Reviewed-by: Joey Arhar <jarharchromium.org> Commit-Queue: Dominic Farolino <domchromium.org> Cr-Commit-Position: refs/heads/main{#1340875} -- wpt-commits: c4e3d193ad0d0e708ad2f252a245c368df098c6e wpt-pr: 47237 UltraBlame original commit: 635103775408664b51f70080db91b67ba60941b8
…get#when(), a=testonly Automatic update from web-platform-tests DOM: Rename EventTarget#on() to EventTarget#when() See the discussion in WICG/observable#39, which led to this decision, and WICG/observable#161 for the corresponding spec rename. R=jarhar Bug: 40282760 Change-Id: I9cd744460a3545c74fb34a0418c6ffddc5e6d4e1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5730072 Reviewed-by: Joey Arhar <jarharchromium.org> Commit-Queue: Dominic Farolino <domchromium.org> Cr-Commit-Position: refs/heads/main{#1340875} -- wpt-commits: c4e3d193ad0d0e708ad2f252a245c368df098c6e wpt-pr: 47237 UltraBlame original commit: 635103775408664b51f70080db91b67ba60941b8
See #39 for discussion, and https://chromium-review.googlesource.com/c/chromium/src/+/5730072 for WPTs that will be upstreamed shortly.
Closes #39.
Preview | Diff