From 10f21cc2a09b6823a73fae4cf1881490f9038d30 Mon Sep 17 00:00:00 2001 From: Tom Johnson Date: Tue, 1 Apr 2014 12:23:20 -0700 Subject: [PATCH] whitespace fix --- src/js/player.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/js/player.js b/src/js/player.js index 8b0a7459c..ae2ff282c 100644 --- a/src/js/player.js +++ b/src/js/player.js @@ -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'); } } - }; /**