]> source.dussan.org Git - jquery-ui.git/commitdiff
slider: animate default should be false
authorPaul Bakaus <paul.bakaus@googlemail.com>
Wed, 28 Jan 2009 22:13:44 +0000 (22:13 +0000)
committerPaul Bakaus <paul.bakaus@googlemail.com>
Wed, 28 Jan 2009 22:13:44 +0000 (22:13 +0000)
ui/ui.slider.js

index 9da0d677dec85851b4b74c91e4a2968968dc59e2..aac78c913125f382a43537cb0be7a62b4053795c 100644 (file)
@@ -354,6 +354,8 @@ $.widget("ui.slider", $.extend({}, $.ui.mouse, {
 
        values: function(index, newValue, noAnimation) {
 
+               if(!this.options.animate) noAnimation = true;
+
                if (arguments.length > 1) {
                        this.options.values[index] = newValue;
                        this._refreshValue(!noAnimation);