-
Notifications
You must be signed in to change notification settings - Fork 22.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Document abortable event listeners (#2759)
* Copy edits for “Introduction to events” * Push “fix fixable flaws” for removeEventListener() * Drop link to non-standard/undocumented detachEvent * Document abortable event listeners This patch includes the following changes: - Document the "signal" parameter for the addEventListener() options object - “Add an abortable listener” example code added to addEventListener() article - Add a similar simple example code to he “Introduction to events” guide - In both “Introduction to events” guide and removeEventListener() article, add prose mentions that you can pass an AbortSignal to an addEventListener() call, and abort/cancel/remove the listener by calling abort() on the controller owning the AbortSignal. Related: - whatwg/dom@83037a1 - https://dom.spec.whatwg.org/#dictdef-addeventlisteneroptions - https://dom.spec.whatwg.org/#ref-for-concept-event-listener① - https://dom.spec.whatwg.org/#ref-for-abortsignal③
- Loading branch information
1 parent
1594b4b
commit 010fcff
Showing
4 changed files
with
73 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters