Skip to content

Commit 3304b54

Browse files
committed
#15262: Correct codestyle.
1 parent 88f7feb commit 3304b54

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

ui/widgets/slider.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -550,15 +550,16 @@ return $.widget( "ui.slider", $.ui.mouse, {
550550
step = this.options.step,
551551
aboveMin = Math.round( ( max - min ) / step ) * step;
552552
max = aboveMin + min;
553+
553554
// Round the max before compare with max from options.
554555
max = max.toFixed( this._precision() );
555-
var option_max = this.options.max.toFixed( this._precision() );
556-
if ( max > option_max ) {
556+
var optionMax = this.options.max.toFixed( this._precision() );
557+
if ( max > optionMax ) {
557558

558559
//If max is not divisible by step, rounding off may increase its value
559560
max -= step;
560561
}
561-
this.max = parseFloat(max);
562+
this.max = parseFloat( max );
562563
},
563564

564565
_precision: function() {

0 commit comments

Comments
 (0)