Fixed #4292 (Slider: ui.value incorrect in slide event if handle at value 0)

This commit is contained in:
Richard Worth 2009-03-10 01:35:09 +00:00
parent 439d93bf8b
commit 4bfadc4514

View File

@ -299,11 +299,15 @@ $.widget("ui.slider", $.extend({}, $.ui.mouse, {
},
_start: function(event, index) {
this._trigger("start", event, {
var uiHash = {
handle: this.handles[index],
value: this.value(),
values: this.values()
});
value: this.value()
};
if (this.options.values && this.options.values.length) {
uiHash.value = this.values(index)
uiHash.values = this.values()
}
this._trigger("start", event, uiHash);
},
_slide: function(event, index, newVal) {