Skip to content

Commit b1c4633

Browse files
committed
Doc: Align the EventTarget.dispatchEvent doc with the actual behavior
1 parent 84d6ce9 commit b1c4633

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

doc/api/events.md

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

1488-
* `event` {Object|Event}
1488+
* `event` {Event}
14891489

14901490
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`.
1491+
must be an `Event` object.
14931492

14941493
The registered event listeners is synchronously invoked in the order they
14951494
were registered.

0 commit comments

Comments
 (0)