Skip to content

Commit

Permalink
Doc: Align the EventTarget.dispatchEvent doc with the actual behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
RhnSharma committed Jun 23, 2021
1 parent 84d6ce9 commit b1c4633
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions doc/api/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -1485,11 +1485,10 @@ target.removeEventListener('foo', handler, { capture: true });
added: v14.5.0
-->

* `event` {Object|Event}
* `event` {Event}

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`.
must be an `Event` object.

The registered event listeners is synchronously invoked in the order they
were registered.
Expand Down

0 comments on commit b1c4633

Please sign in to comment.