diff options
author | Richard Worth <rdworth@gmail.com> | 2009-01-20 13:31:30 +0000 |
---|---|---|
committer | Richard Worth <rdworth@gmail.com> | 2009-01-20 13:31:30 +0000 |
commit | df2ef4224ae5fe62c780cdf6de2d20eebd38f480 (patch) | |
tree | 84f6ff431a95588fcac0b4d4dbbd8831b275df3c | |
parent | d578a66d49f0779de7d99b68d35d97e5600d3167 (diff) | |
download | jquery-ui-df2ef4224ae5fe62c780cdf6de2d20eebd38f480.tar.gz jquery-ui-df2ef4224ae5fe62c780cdf6de2d20eebd38f480.zip |
Fixed #3766 - slider seems to be missing ui.handle property in options
-rw-r--r-- | ui/ui.slider.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/ui.slider.js b/ui/ui.slider.js index d2762deff..24c6bff58 100644 --- a/ui/ui.slider.js +++ b/ui/ui.slider.js @@ -271,9 +271,10 @@ $.widget("ui.slider", $.extend({}, $.ui.mouse, { _slide: function(event, index, newVal) { + var handle = this.handles[index]; + if (this.options.values && this.options.values.length) { - var handle = this.handles[index]; var otherVal = this.values(index ? 0 : 1); if ((index == 0 && newVal >= otherVal) || (index == 1 && newVal <= otherVal)) @@ -299,6 +300,7 @@ $.widget("ui.slider", $.extend({}, $.ui.mouse, { if (newVal != this.value()) { // A slide can be canceled by returning false from the slide callback var allowed = this._trigger("slide", event, { + handle: handle, value: newVal }); if (allowed !== false) |