Skip to content

Commit 74ba115

Browse files
RhnSharmatargos
authored andcommitted
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>
1 parent 2884d90 commit 74ba115

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
@@ -1468,11 +1468,11 @@ target.removeEventListener('foo', handler, { capture: true });
14681468
added: v14.5.0
14691469
-->
14701470

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

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

14771477
The registered event listeners is synchronously invoked in the order they
14781478
were registered.

0 commit comments

Comments
 (0)