r1711 - trunk/ui
r1711 - trunk/ui
Author: rdworth
Date: Tue Jan 20 05:31:30 2009
New Revision: 1711
Modified:
trunk/ui/ui.slider.js
Log:
Fixed #3766 - slider seems to be missing ui.handle property in options
Modified: trunk/ui/ui.slider.js
==============================================================================
--- trunk/ui/ui.slider.js (original)
+++ trunk/ui/ui.slider.js Tue Jan 20 05:31:30 2009
@@ -271,9 +271,10 @@
_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 @@
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)