aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ui/ui.slider.js5
1 files changed, 4 insertions, 1 deletions
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);