Skip to content

Commit 21e8720

Browse files
RhnSharmatargos
authored andcommitted
doc: fix EventTarget.dispatchEvent docs
PR-URL: #39127 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 65b56b3 commit 21e8720

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: doc/api/events.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1484,11 +1484,11 @@ target.removeEventListener('foo', handler, { capture: true });
14841484
added: v14.5.0
14851485
-->
14861486

1487-
* `event` {Object|Event}
1487+
* `event` {Event}
1488+
* Returns: {boolean} `true` if either event’s `cancelable` attribute value is
1489+
false or its `preventDefault()` method was not invoked, otherwise `false`.
14881490

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

14931493
The registered event listeners is synchronously invoked in the order they
14941494
were registered.

0 commit comments

Comments
 (0)