diff options
author | Richard Worth <rdworth@gmail.com> | 2009-03-10 01:35:09 +0000 |
---|---|---|
committer | Richard Worth <rdworth@gmail.com> | 2009-03-10 01:35:09 +0000 |
commit | 4bfadc451477639f88412f9a955214cce4cd68f4 (patch) | |
tree | 39905be60a389e8c7dd8ea9b7ad43572481a33fa /ui | |
parent | 439d93bf8b8092e57f4a6c22c049cd29427e0aad (diff) | |
download | jquery-ui-4bfadc451477639f88412f9a955214cce4cd68f4.tar.gz jquery-ui-4bfadc451477639f88412f9a955214cce4cd68f4.zip |
Fixed #4292 (Slider: ui.value incorrect in slide event if handle at value 0)
Diffstat (limited to 'ui')
-rw-r--r-- | ui/ui.slider.js | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/ui/ui.slider.js b/ui/ui.slider.js index 32b746689..10a09f300 100644 --- a/ui/ui.slider.js +++ b/ui/ui.slider.js @@ -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) { |