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
|
// Create hidden text label
|
||||||
createLabel(key, attr = {}) {
|
createLabel(key, attr = {}) {
|
||||||
const text = i18n.get(key, this.config);
|
const text = i18n.get(key, this.config);
|
||||||
|
const attributes = { ...attr, class: [attr.class, this.config.classNames.hidden].filter(Boolean).join(' '),};
|
||||||
const attributes = Object.assign({}, attr, {
|
|
||||||
class: [attr.class, this.config.classNames.hidden].filter(Boolean).join(' '),
|
|
||||||
});
|
|
||||||
|
|
||||||
return createElement('span', attributes, text);
|
return createElement('span', attributes, text);
|
||||||
},
|
},
|
||||||
|
@ -90,9 +90,7 @@ export function triggerEvent(element, type = '', bubbles = false, detail = {}) {
|
|||||||
// Create and dispatch the event
|
// Create and dispatch the event
|
||||||
const event = new CustomEvent(type, {
|
const event = new CustomEvent(type, {
|
||||||
bubbles,
|
bubbles,
|
||||||
detail: Object.assign({}, detail, {
|
detail: { ...detail, plyr: this,},
|
||||||
plyr: this,
|
|
||||||
}),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// Dispatch the event
|
// Dispatch the event
|
||||||
|
Loading…
x
Reference in New Issue
Block a user