Fix linting issues

This commit is contained in:
Sam Potts
2020-01-13 16:20:02 +00:00
parent 6b0e5cd6f1
commit 0b240ae7d1
2 changed files with 2 additions and 7 deletions

View File

@ -90,9 +90,7 @@ export function triggerEvent(element, type = '', bubbles = false, detail = {}) {
// Create and dispatch the event
const event = new CustomEvent(type, {
bubbles,
detail: Object.assign({}, detail, {
plyr: this,
}),
detail: { ...detail, plyr: this,},
});
// Dispatch the event