Commit f0c3916b by Valera Rozuvan

Fix video code duplication.

rangeParams returned from getRangeParams() function is already
an object that contains the left and width properties. It can
be passed directly to the jQuery css() function.
parent 98eecf13
......@@ -156,19 +156,13 @@ function () {
'ui-widget-header ' +
'ui-corner-all ' +
'slider-range'
}).css({
left: rangeParams.left,
width: rangeParams.width
});
}).css(rangeParams);
this.videoProgressSlider.sliderProgress
.after(this.videoProgressSlider.sliderRange);
} else {
this.videoProgressSlider.sliderRange
.css({
left: rangeParams.left,
width: rangeParams.width
});
.css(rangeParams);
}
}
......
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