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/captions.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/captions.js')
-rw-r--r-- | src/js/captions.js | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/js/captions.js b/src/js/captions.js index 0db755ac..ed1dab8b 100644 --- a/src/js/captions.js +++ b/src/js/captions.js @@ -43,20 +43,13 @@ const captions = { // Inject the container if (!utils.is.htmlElement(this.elements.captions)) { - this.elements.captions = utils.createElement( - 'div', - utils.getAttributesFromSelector(this.config.selectors.captions) - ); + this.elements.captions = utils.createElement('div', utils.getAttributesFromSelector(this.config.selectors.captions)); utils.insertAfter(this.elements.captions, this.elements.wrapper); } // Set the class hook - utils.toggleClass( - this.elements.container, - this.config.classNames.captions.enabled, - !utils.is.empty(captions.getTracks.call(this)) - ); + utils.toggleClass(this.elements.container, this.config.classNames.captions.enabled, !utils.is.empty(captions.getTracks.call(this))); // If no caption file exists, hide container for caption text if (utils.is.empty(captions.getTracks.call(this))) { |