Formatting

This commit is contained in:
Sam Potts 2017-04-15 23:21:18 +10:00
parent 889712761a
commit 808a3af3cf
2 changed files with 9 additions and 9 deletions

4
dist/plyr.js vendored

File diff suppressed because one or more lines are too long

View File

@ -989,8 +989,8 @@
attributes.forEach(function(attribute) { attributes.forEach(function(attribute) {
insertElement(type, player.elements.media, attribute); insertElement(type, player.elements.media, attribute);
}); });
}
} }
}
// Get icon URL // Get icon URL
function getIconUrl() { function getIconUrl() {
@ -1396,7 +1396,7 @@
config.tracks.forEach(function(track, index) { config.tracks.forEach(function(track, index) {
if (is.function(track)) { if (is.function(track)) {
return; return;
} }
var option = createElement('li'); var option = createElement('li');
@ -1411,7 +1411,7 @@
}); });
} }
break; break;
} }
pane.appendChild(options); pane.appendChild(options);
@ -1780,8 +1780,8 @@
} }
// Get URL of caption file if exists // Get URL of caption file if exists
var captionSources = [], var captionSources = [];
captionSrc = ''; var captionSrc = '';
player.elements.media.childNodes.forEach(function(child) { player.elements.media.childNodes.forEach(function(child) {
if (child.nodeName.toLowerCase() === 'track') { if (child.nodeName.toLowerCase() === 'track') {
@ -3094,7 +3094,7 @@
// It should be a number, but parse it just incase // It should be a number, but parse it just incase
var duration = parseInt(config.duration); var duration = parseInt(config.duration);
// True duration // True duration
var mediaDuration = 0; var mediaDuration = 0;
// Only if duration available // Only if duration available
@ -3457,7 +3457,7 @@
mins = ('0' + mins).slice(-2); mins = ('0' + mins).slice(-2);
// Generate display // Generate display
var display = (displayHours ? hours + ':' : '') + mins + ':' + secs; var label = (displayHours ? hours + ':' : '') + mins + ':' + secs;
// Render // Render
element.textContent = label; element.textContent = label;