mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
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:
1 parent
2884d9094d
commit
74ba115ab6
1 file changed
+4
-4
+4
-4
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user