Commit 15909954 by Valera Rozuvan

Updated code as suggested by reviewers.

parent 03d4838b
...@@ -117,11 +117,7 @@ function () { ...@@ -117,11 +117,7 @@ function () {
// If end is set to null, then we set it to the end of the video. We // 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 // know that start is not a the beginning, therefore we must build a
// range. // range.
if (!this.config.end) { end = this.config.end || params.duration;
end = params.duration;
} else {
end = this.config.end;
}
left = (100 * (start / params.duration)).toFixed(1); left = (100 * (start / params.duration)).toFixed(1);
width = (100 * ((end - start) / params.duration)).toFixed(1); width = (100 * ((end - start) / params.duration)).toFixed(1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment