slider: animate default should be false

This commit is contained in:
Paul Bakaus 2009-01-28 22:13:44 +00:00
parent ab32cefef5
commit 966f6e46dd

View 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);