Skip to content

Commit

Permalink
Add useCapture
Browse files Browse the repository at this point in the history
  • Loading branch information
bencroker authored Aug 21, 2024
1 parent 495ac92 commit 3f3b1b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions www/content/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -316,14 +316,14 @@ Adds an event listener to an element

* `eventName` - the event name to add the listener for
* `listener` - the listener to add
* `options` - [options](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#options) to add to the event listener (optional)
* `options` - an [options](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#options) object (or a [useCapture](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#usecapture) boolean) to add to the event listener (optional)

or

* `target` - the element to add the listener to
* `eventName` - the event name to add the listener for
* `listener` - the listener to add
* `options` - [options](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#options) to add to the event listener (optional)
* `options` - an [options](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#options) object (or a [useCapture](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#usecapture) boolean) to add to the event listener (optional)

##### Example

Expand Down

0 comments on commit 3f3b1b6

Please sign in to comment.