Skip to content

Commit ffda9a8

Browse files
RhnSharmaaduh95
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 19b80cc commit ffda9a8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/api/events.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1485,11 +1485,11 @@ target.removeEventListener('foo', handler, { capture: true });
14851485
added: v14.5.0
14861486
-->
14871487

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

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

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

0 commit comments

Comments
 (0)