Fix linting issues
This commit is contained in:
parent
6b0e5cd6f1
commit
0b240ae7d1
5
src/js/controls.js
vendored
5
src/js/controls.js
vendored
@ -139,10 +139,7 @@ const controls = {
|
||||
// Create hidden text label
|
||||
createLabel(key, attr = {}) {
|
||||
const text = i18n.get(key, this.config);
|
||||
|
||||
const attributes = Object.assign({}, attr, {
|
||||
class: [attr.class, this.config.classNames.hidden].filter(Boolean).join(' '),
|
||||
});
|
||||
const attributes = { ...attr, class: [attr.class, this.config.classNames.hidden].filter(Boolean).join(' '),};
|
||||
|
||||
return createElement('span', attributes, text);
|
||||
},
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user