1
0
mirror of https://github.com/videojs/video.js.git synced 2025-07-17 01:42:41 +02:00

whitespace fix

This commit is contained in:
Tom Johnson
2014-04-01 12:23:20 -07:00
parent 6a093d6798
commit 10f21cc2a0

View File

@ -504,16 +504,11 @@ vjs.Player.prototype.onDurationChange = function(){
// We need to get the techGet response and check for a value so we don't
// accidentally cause the stack to blow up.
var duration = this.techGet('duration');
if (duration) {
if (duration < 0) {
duration = Infinity;
}
this.duration(duration);
// Determine if the stream is live and propagate styles down to UI.
if (duration === Infinity) {
this.addClass('vjs-live');
@ -521,7 +516,6 @@ vjs.Player.prototype.onDurationChange = function(){
this.removeClass('vjs-live');
}
}
};
/**