Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
doc: fix EventTarget.dispatchEvent docs
PR-URL: #39127
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
RhnSharma authored and aduh95 committed Jun 26, 2021
commit ffda9a8953ccf5afe099322d038eb23f2cfe6d82
8 changes: 4 additions & 4 deletions doc/api/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -1485,11 +1485,11 @@ target.removeEventListener('foo', handler, { capture: true });
added: v14.5.0
-->

* `event` {Object|Event}
* `event` {Event}
Comment thread
aduh95 marked this conversation as resolved.
* Returns: {boolean} `true` if either event’s `cancelable` attribute value is
false or its `preventDefault()` method was not invoked, otherwise `false`.

Dispatches the `event` to the list of handlers for `event.type`. The `event`
may be an `Event` object or any object with a `type` property whose value is
a `string`.
Dispatches the `event` to the list of handlers for `event.type`.

The registered event listeners is synchronously invoked in the order they
were registered.
Expand Down