From: Richard Worth Date: Wed, 31 Dec 2008 04:48:12 +0000 (+0000) Subject: slider: added ui.values in the slide callback for a range X-Git-Tag: 1.6rc3~52 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1907c374cf0de9c1787b7db08c5add6194ef3b08;p=jquery-ui.git slider: added ui.values in the slide callback for a range --- diff --git a/ui/ui.slider.js b/ui/ui.slider.js index 6c775a104..213607bac 100644 --- a/ui/ui.slider.js +++ b/ui/ui.slider.js @@ -262,10 +262,13 @@ $.widget("ui.slider", $.extend({}, $.ui.mouse, { var handle = this.handles.filter(".ui-state-active"); var index = handle.data("index.ui-slider-handle"); if (newVal != this.values(index)) { + var newValues = this.values(); + newValues[index] = newVal; // A slide can be canceled by returning false from the slide callback var allowed = this._trigger("slide", event, { handle: handle, - value: newVal + value: newVal, + values: newValues }); if (allowed !== false) this.values(index, newVal);