From de6f0f1b778180f7b26f85f45053ffb97eb526af Mon Sep 17 00:00:00 2001 From: Sam Potts Date: Thu, 23 Nov 2017 12:57:43 +1100 Subject: Updated data attributes to `data-plyr` namespace. Speed menu fixes --- src/js/utils.js | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'src/js/utils.js') 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; -- cgit v1.2.3