aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/plyr.js
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2020-06-27 21:59:35 +1000
committerSam Potts <sam@potts.es>2020-11-14 13:01:36 +1100
commitc3e163741fd5a4a88e56c9d425109f2014c8511f (patch)
treec1651e8b90d096a6000595d03d533a6e15ac0a0e /src/js/plyr.js
parent1c715bc88922e20360c7ad2d5b625cccb16247fa (diff)
downloadplyr-c3e163741fd5a4a88e56c9d425109f2014c8511f.tar.lz
plyr-c3e163741fd5a4a88e56c9d425109f2014c8511f.tar.xz
plyr-c3e163741fd5a4a88e56c9d425109f2014c8511f.zip
Linting changes
Diffstat (limited to 'src/js/plyr.js')
-rw-r--r--src/js/plyr.js11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/js/plyr.js b/src/js/plyr.js
index ff92d95e..420910a0 100644
--- a/src/js/plyr.js
+++ b/src/js/plyr.js
@@ -281,7 +281,7 @@ class Plyr {
// Listen for events if debugging
if (this.config.debug) {
- on.call(this, this.elements.container, this.config.events.join(' '), event => {
+ on.call(this, this.elements.container, this.config.events.join(' '), (event) => {
this.debug.log(`event: ${event.type}`);
});
}
@@ -1054,7 +1054,12 @@ class Plyr {
const hiding = toggleClass(this.elements.container, this.config.classNames.hideControls, force);
// Close menu
- if (hiding && is.array(this.config.controls) && this.config.controls.includes('settings') && !is.empty(this.config.settings)) {
+ if (
+ hiding &&
+ is.array(this.config.controls) &&
+ this.config.controls.includes('settings') &&
+ !is.empty(this.config.settings)
+ ) {
controls.toggleMenu.call(this, false);
}
@@ -1248,7 +1253,7 @@ class Plyr {
return null;
}
- return targets.map(t => new Plyr(t, options));
+ return targets.map((t) => new Plyr(t, options));
}
}