Skip to content
Snippets Groups Projects
Commit f0c3916b authored by Valera Rozuvan's avatar Valera Rozuvan
Browse files

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
No related merge requests found
......@@ -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);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment