Skip to content

Commit 587371f

Browse files
committed
#15262: Correct codestyle.
1 parent 0f3a8fa commit 587371f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

ui/widgets/slider.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -550,15 +550,18 @@ return $.widget( "ui.slider", $.ui.mouse, {
550550
step = this.options.step,
551551
aboveMin = Math.floor( ( max - min ) / step ) * step;
552552
max = aboveMin + min;
553+
553554
// Round the max before compare with max from option.
554555
max = parseFloat( max.toFixed( this._precision() ) );
555556
var optionMax = parseFloat( this.options.max.toFixed( this._precision() ) );
556557
if ( max > optionMax ) {
558+
557559
// If max is not divisible by step, rounding off may increase its value
558560
max -= step;
559561
}
560-
// Make sure that max is covered.
561-
else if ( max <= (optionMax - step) ) {
562+
else if ( max <= ( optionMax - step ) ) {
563+
564+
// Make sure that max is covered.
562565
max += step;
563566
}
564567
this.max = max;

0 commit comments

Comments
 (0)