small typo fix

element.addEventListener(event, handler[, options]); TO element.addEventListener(event, handler, [options]);
This commit is contained in:
jorishr 2020-02-24 19:17:02 +01:00 committed by GitHub
parent 405150f1f2
commit 1c1b8a0b94
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -216,7 +216,7 @@ Web-standard developers understood that long ago and suggested an alternative wa
The syntax to add a handler: The syntax to add a handler:
```js ```js
element.addEventListener(event, handler[, options]); element.addEventListener(event, handler, [options]);
``` ```
`event` `event`
@ -235,7 +235,7 @@ element.addEventListener(event, handler[, options]);
To remove the handler, use `removeEventListener`: To remove the handler, use `removeEventListener`:
```js ```js
element.removeEventListener(event, handler[, options]); element.removeEventListener(event, handler, [options]);
``` ```
````warn header="Removal requires the same function" ````warn header="Removal requires the same function"