});
var otherVal = this.values(index ? 0 : 1);
if (allowed !== false) {
- this.values(index, newVal, !( event.type == 'mousedown' && this.options.animate ));
+ this.values(index, newVal, ( event.type == 'mousedown' && this.options.animate ));
}
}
},
- values: function(index, newValue, noAnimation) {
-
- if(!this.options.animate) noAnimation = true;
+ values: function(index, newValue, animated) {
if (arguments.length > 1) {
this.options.values[index] = newValue;
- this._refreshValue(!noAnimation);
+ this._refreshValue(animated);
this._change();
}
},
- _setData: function(key, value) {
+ _setData: function(key, value, animated) {
$.widget.prototype._setData.apply(this, arguments);
this.element
.removeClass("ui-slider-horizontal ui-slider-vertical")
.addClass("ui-slider-" + this.orientation);
- this._refreshValue();
+ this._refreshValue(animated);
break;
case 'value':
- this._refreshValue();
+ this._refreshValue(animated);
break;
}