Skip to content
Permalink
Browse files

slider: added ui.values in the slide callback for a range

  • Loading branch information
rdworth committed Dec 31, 2008
1 parent 419da55 commit 1907c374cf0de9c1787b7db08c5add6194ef3b08
Showing with 4 additions and 1 deletion.
  1. +4 −1 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);

0 comments on commit 1907c37

Please sign in to comment.
You can’t perform that action at this time.