Travis build: 583

This commit is contained in:
30secondsofcode
2018-10-03 09:34:17 +00:00
parent 3aa23e10f2
commit 25d93ab6ad
2 changed files with 4 additions and 4 deletions

View File

@ -4153,8 +4153,8 @@ Use `el.dispatchEvent()` to trigger the newly created event on the given element
Omit the third argument, `detail`, if you do not want to pass custom data to the triggered event.
```js
const triggerEvent = (el, eventType, detail = undefined) =>
el.dispatchEvent(new CustomEvent(eventType, { detail: detail }));
const triggerEvent = (el, eventType, detail) =>
el.dispatchEvent(new CustomEvent(eventType, { detail }));
```
<details>