Skip to content
Permalink
Browse files

Fixed #3766 - slider seems to be missing ui.handle property in options

  • Loading branch information
rdworth committed Jan 20, 2009
1 parent d578a66 commit df2ef4224ae5fe62c780cdf6de2d20eebd38f480
Showing with 3 additions and 1 deletion.
  1. +3 −1 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)

0 comments on commit df2ef42

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