small typo fix
element.addEventListener(event, handler[, options]); TO element.addEventListener(event, handler, [options]);
This commit is contained in:
parent
405150f1f2
commit
1c1b8a0b94
1 changed files with 2 additions and 2 deletions
|
@ -216,7 +216,7 @@ Web-standard developers understood that long ago and suggested an alternative wa
|
|||
The syntax to add a handler:
|
||||
|
||||
```js
|
||||
element.addEventListener(event, handler[, options]);
|
||||
element.addEventListener(event, handler, [options]);
|
||||
```
|
||||
|
||||
`event`
|
||||
|
@ -235,7 +235,7 @@ element.addEventListener(event, handler[, options]);
|
|||
To remove the handler, use `removeEventListener`:
|
||||
|
||||
```js
|
||||
element.removeEventListener(event, handler[, options]);
|
||||
element.removeEventListener(event, handler, [options]);
|
||||
```
|
||||
|
||||
````warn header="Removal requires the same function"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue