]> source.dussan.org Git - jquery-ui.git/commitdiff
Slider: Fixed var statement. Fixes #7564 - alignValue Global Scope.
authorScott González <scott.gonzalez@gmail.com>
Tue, 19 Jul 2011 15:42:01 +0000 (11:42 -0400)
committerScott González <scott.gonzalez@gmail.com>
Tue, 19 Jul 2011 15:42:01 +0000 (11:42 -0400)
ui/jquery.ui.slider.js

index ea93c3e1cb3425b80c6274a49d8f1ff6147bb544..f0b01d7c074f6f369adb4d34dc3153ba4fea5858 100644 (file)
@@ -576,7 +576,7 @@ $.widget( "ui.slider", $.ui.mouse, {
                        return this._valueMax();
                }
                var step = ( this.options.step > 0 ) ? this.options.step : 1,
-                       valModStep = (val - this._valueMin()) % step;
+                       valModStep = (val - this._valueMin()) % step,
                        alignValue = val - valModStep;
 
                if ( Math.abs(valModStep) * 2 >= step ) {