diff options
author | Sam Potts <me@sampotts.me> | 2017-11-23 12:57:43 +1100 |
---|---|---|
committer | Sam Potts <me@sampotts.me> | 2017-11-23 12:57:43 +1100 |
commit | de6f0f1b778180f7b26f85f45053ffb97eb526af (patch) | |
tree | 623b0f29466fa2bfb714e04a48fd111b7932730d /src/js/utils.js | |
parent | 7382553a7857bb9888cfb2ea353c57b185082441 (diff) | |
download | plyr-de6f0f1b778180f7b26f85f45053ffb97eb526af.tar.lz plyr-de6f0f1b778180f7b26f85f45053ffb97eb526af.tar.xz plyr-de6f0f1b778180f7b26f85f45053ffb97eb526af.zip |
Updated data attributes to `data-plyr` namespace. Speed menu fixes
Diffstat (limited to 'src/js/utils.js')
-rw-r--r-- | src/js/utils.js | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/src/js/utils.js b/src/js/utils.js index 299f8c92..25617ac8 100644 --- a/src/js/utils.js +++ b/src/js/utils.js @@ -41,9 +41,7 @@ const utils = { return this.instanceof(input, window.TextTrackCue) || this.instanceof(input, window.VTTCue); }, track(input) { - return ( - this.instanceof(input, window.TextTrack) || (!this.nullOrUndefined(input) && this.string(input.kind)) - ); + return this.instanceof(input, window.TextTrack) || (!this.nullOrUndefined(input) && this.string(input.kind)); }, nullOrUndefined(input) { return input === null || typeof input === 'undefined'; @@ -358,12 +356,7 @@ const utils = { return Array.from(document.querySelectorAll(selector)).includes(this); } - const matches = - prototype.matches || - prototype.webkitMatchesSelector || - prototype.mozMatchesSelector || - prototype.msMatchesSelector || - match; + const matches = prototype.matches || prototype.webkitMatchesSelector || prototype.mozMatchesSelector || prototype.msMatchesSelector || match; return matches.call(element, selector); }, @@ -417,9 +410,7 @@ const utils = { // Seek tooltip if (utils.is.htmlElement(this.elements.progress)) { - this.elements.display.seekTooltip = this.elements.progress.querySelector( - `.${this.config.classNames.tooltip}` - ); + this.elements.display.seekTooltip = this.elements.progress.querySelector(`.${this.config.classNames.tooltip}`); } return true; |