doc: fix EventTarget.dispatchEvent docs

PR-URL: https://github.com/nodejs/node/pull/39127
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
Rohan Sharma authored and Michaël Zasso committed 2021-09-04 11:26:01 +02:00
1 parent 2884d9094d
commit 74ba115ab6
1 file changed
+4 -4
+4 -4
View File
@@ -1468,11 +1468,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.