aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/plyr.js
diff options
context:
space:
mode:
authorSam <me@sampotts.me>2016-10-01 22:18:01 +1000
committerSam <me@sampotts.me>2016-10-01 22:18:01 +1000
commit8743c6a08d68ef0648ad0a4a59b3dc2b4dcf2e7c (patch)
tree48cad58e96e78e52634c3e9d6734d00c37d3622d /src/js/plyr.js
parenteba083153845a472629d3010bc8e348e34ecc4c9 (diff)
downloadplyr-8743c6a08d68ef0648ad0a4a59b3dc2b4dcf2e7c.tar.lz
plyr-8743c6a08d68ef0648ad0a4a59b3dc2b4dcf2e7c.tar.xz
plyr-8743c6a08d68ef0648ad0a4a59b3dc2b4dcf2e7c.zip
Code style
Diffstat (limited to 'src/js/plyr.js')
-rw-r--r--src/js/plyr.js12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/js/plyr.js b/src/js/plyr.js
index 36e446f0..cdd23927 100644
--- a/src/js/plyr.js
+++ b/src/js/plyr.js
@@ -1132,7 +1132,7 @@
if (track.activeCues && track.activeCues.length > 0) {
_setActiveCueForTrack(track);
}
- }
+ }
} else {
// Caption tracks not natively supported
_log('TextTracks not supported so rendering captions manually');
@@ -2456,17 +2456,15 @@
}
// Select active caption
- function _setCaptionIndex(index){
-
- //save active caption
+ function _setCaptionIndex(index) {
+ // Save active caption
config.captions.selectedIndex = index;
- // clear caption
+ // Clear caption
_setCaption();
- // re-run setup
+ // Re-run setup
_setupCaptions();
-
}
// Check if media is loading