From 159099541a0c8f3318e06323d07f8069976dc07f Mon Sep 17 00:00:00 2001 From: Valera Rozuvan Date: Tue, 22 Oct 2013 14:44:57 +0300 Subject: [PATCH] Updated code as suggested by reviewers. --- .../xmodule/js/src/video/06_video_progress_slider.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/common/lib/xmodule/xmodule/js/src/video/06_video_progress_slider.js b/common/lib/xmodule/xmodule/js/src/video/06_video_progress_slider.js index 2f45439363..d3a0a9ad8d 100644 --- a/common/lib/xmodule/xmodule/js/src/video/06_video_progress_slider.js +++ b/common/lib/xmodule/xmodule/js/src/video/06_video_progress_slider.js @@ -117,11 +117,7 @@ function () { // If end is set to null, then we set it to the end of the video. We // know that start is not a the beginning, therefore we must build a // range. - if (!this.config.end) { - end = params.duration; - } else { - end = this.config.end; - } + end = this.config.end || params.duration; left = (100 * (start / params.duration)).toFixed(1); width = (100 * ((end - start) / params.duration)).toFixed(1);