From 8743c6a08d68ef0648ad0a4a59b3dc2b4dcf2e7c Mon Sep 17 00:00:00 2001 From: Sam Date: Sat, 1 Oct 2016 22:18:01 +1000 Subject: [PATCH] Code style --- src/js/plyr.js | 12 +++++------- 1 file 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