Changed "phrase" to "phase" for capture param
This commit is contained in:
parent
d9740908bf
commit
39394b96f2
1 changed files with 1 additions and 1 deletions
|
@ -228,7 +228,7 @@ element.addEventListener(event, handler[, options]);
|
|||
`options`
|
||||
: An additional optional object with properties:
|
||||
- `once`: if `true`, then the listener is automatically removed after it triggers.
|
||||
- `capture`: the phrase where to handle the event, to be covered later in the chapter <info:bubbling-and-capturing>. For historical reasons, `options` can also be `false/true`, that's the same as `{capture: false/true}`.
|
||||
- `capture`: the phase where to handle the event, to be covered later in the chapter <info:bubbling-and-capturing>. For historical reasons, `options` can also be `false/true`, that's the same as `{capture: false/true}`.
|
||||
- `passive`: if `true`, then the handler will not `preventDefault()`, we'll cover that later in <info:default-browser-action>.
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue