diff options
author | Sam Potts <sam@potts.es> | 2020-06-27 21:59:35 +1000 |
---|---|---|
committer | Sam Potts <sam@potts.es> | 2020-10-19 22:27:16 +1100 |
commit | 9a69ae25993f8e2e6b30c2435aba98f779e129ad (patch) | |
tree | 5cb38a0518e9859f8eeb4c31c40d4c0f8e885af8 /src/js/plyr.js | |
parent | 02321c35bc51e64a1f62611c73b8533ef7c3d7eb (diff) | |
download | plyr-9a69ae25993f8e2e6b30c2435aba98f779e129ad.tar.lz plyr-9a69ae25993f8e2e6b30c2435aba98f779e129ad.tar.xz plyr-9a69ae25993f8e2e6b30c2435aba98f779e129ad.zip |
Linting changes
Diffstat (limited to 'src/js/plyr.js')
-rw-r--r-- | src/js/plyr.js | 11 |
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)); } } |