aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2011-07-19 11:42:01 -0400
committerScott González <scott.gonzalez@gmail.com>2011-07-19 11:42:01 -0400
commit8d43fe7e3428e4fb4e5d9ca9e76a0d5078dfe708 (patch)
treed88fd113d5eb954baaa2b475e9b7c31438de7204
parentc1929fc2906aad0174fadf0b8fb6c513f389e5f6 (diff)
downloadjquery-ui-8d43fe7e3428e4fb4e5d9ca9e76a0d5078dfe708.tar.gz
jquery-ui-8d43fe7e3428e4fb4e5d9ca9e76a0d5078dfe708.zip
Slider: Fixed var statement. Fixes #7564 - alignValue Global Scope.
-rw-r--r--ui/jquery.ui.slider.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.ui.slider.js b/ui/jquery.ui.slider.js
index ea93c3e1c..f0b01d7c0 100644
--- a/ui/jquery.ui.slider.js
+++ b/ui/jquery.ui.slider.js
@@ -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 ) {