Slider: Fixed var statement. Fixes #7564 - alignValue Global Scope.

This commit is contained in:
Scott González 2011-07-19 11:42:01 -04:00
parent c1929fc290
commit 8d43fe7e34

View File

@ -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 ) {