Skip to content

Commit

Permalink
doc: fix EventTarget.dispatchEvent docs
Browse files Browse the repository at this point in the history
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 targos committed Jul 11, 2021
1 parent 65b56b3 commit 21e8720
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doc/api/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -1484,11 +1484,11 @@ target.removeEventListener('foo', handler, { capture: true });
added: v14.5.0
-->

* `event` {Object|Event}
* `event` {Event}
* 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

0 comments on commit 21e8720

Please sign in to comment.