diff options
author | Sam Potts <sam@potts.es> | 2019-04-30 23:44:05 +1000 |
---|---|---|
committer | Sam Potts <sam@potts.es> | 2019-04-30 23:44:05 +1000 |
commit | 80aa6ffe435b170466838f977d52438a95e22186 (patch) | |
tree | 0243268c1dd2af2ded86c03f2ea222032cb58527 /src/js/plyr.js | |
parent | 0694e586502f7ce85ce7858b67d515403b48c87e (diff) | |
download | plyr-80aa6ffe435b170466838f977d52438a95e22186.tar.lz plyr-80aa6ffe435b170466838f977d52438a95e22186.tar.xz plyr-80aa6ffe435b170466838f977d52438a95e22186.zip |
Linting changes
Diffstat (limited to 'src/js/plyr.js')
-rw-r--r-- | src/js/plyr.js | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/js/plyr.js b/src/js/plyr.js index 7124c6ba..5ec5bf2e 100644 --- a/src/js/plyr.js +++ b/src/js/plyr.js @@ -151,7 +151,6 @@ class Plyr { // Set media type based on tag or data attribute // Supported: video, audio, vimeo, youtube const type = this.media.tagName.toLowerCase(); - // Embed properties let iframe = null; let url = null; @@ -514,7 +513,6 @@ class Plyr { get duration() { // Faux duration set via config const fauxDuration = parseFloat(this.config.duration); - // Media duration can be NaN or Infinity before the media has loaded const realDuration = (this.media || {}).duration; const duration = !is.number(realDuration) || realDuration === Infinity ? 0 : realDuration; @@ -1045,10 +1043,8 @@ class Plyr { if (this.supported.ui && !this.isAudio) { // Get state before change const isHidden = hasClass(this.elements.container, this.config.classNames.hideControls); - // Negate the argument if not undefined since adding the class to hides the controls const force = typeof toggle === 'undefined' ? undefined : !toggle; - // Apply and get updated state const hiding = toggleClass(this.elements.container, this.config.classNames.hideControls, force); |