From 8d43fe7e3428e4fb4e5d9ca9e76a0d5078dfe708 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Scott=20Gonz=C3=A1lez?= Date: Tue, 19 Jul 2011 11:42:01 -0400 Subject: [PATCH] Slider: Fixed var statement. Fixes #7564 - alignValue Global Scope. --- ui/jquery.ui.slider.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) {