Code style

This commit is contained in:
Sam 2016-10-01 22:18:01 +10:00
parent eba0831538
commit 8743c6a08d

View File

@ -1132,7 +1132,7 @@
if (track.activeCues && track.activeCues.length > 0) { if (track.activeCues && track.activeCues.length > 0) {
_setActiveCueForTrack(track); _setActiveCueForTrack(track);
} }
} }
} else { } else {
// Caption tracks not natively supported // Caption tracks not natively supported
_log('TextTracks not supported so rendering captions manually'); _log('TextTracks not supported so rendering captions manually');
@ -2456,17 +2456,15 @@
} }
// Select active caption // Select active caption
function _setCaptionIndex(index){ function _setCaptionIndex(index) {
// Save active caption
//save active caption
config.captions.selectedIndex = index; config.captions.selectedIndex = index;
// clear caption // Clear caption
_setCaption(); _setCaption();
// re-run setup // Re-run setup
_setupCaptions(); _setupCaptions();
} }
// Check if media is loading // Check if media is loading