r1387 - trunk/ui

r1387 - trunk/ui


Author: rdworth
Date: Tue Dec 30 20:48:12 2008
New Revision: 1387
Modified:
trunk/ui/ui.slider.js
Log:
slider: added ui.values in the slide callback for a range
Modified: trunk/ui/ui.slider.js
==============================================================================
--- trunk/ui/ui.slider.js    (original)
+++ trunk/ui/ui.slider.js    Tue Dec 30 20:48:12 2008
@@ -262,10 +262,13 @@
            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);