mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Slider: Fixed var statement. Fixes #7564 - alignValue Global Scope.
This commit is contained in:
parent
c1929fc290
commit
8d43fe7e34
2
ui/jquery.ui.slider.js
vendored
2
ui/jquery.ui.slider.js
vendored
@ -576,7 +576,7 @@ $.widget( "ui.slider", $.ui.mouse, {
|
|||||||
return this._valueMax();
|
return this._valueMax();
|
||||||
}
|
}
|
||||||
var step = ( this.options.step > 0 ) ? this.options.step : 1,
|
var step = ( this.options.step > 0 ) ? this.options.step : 1,
|
||||||
valModStep = (val - this._valueMin()) % step;
|
valModStep = (val - this._valueMin()) % step,
|
||||||
alignValue = val - valModStep;
|
alignValue = val - valModStep;
|
||||||
|
|
||||||
if ( Math.abs(valModStep) * 2 >= step ) {
|
if ( Math.abs(valModStep) * 2 >= step ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user