r2482 - updated the condition to assert that values.legnth ==2 and range: true. (fixed #3736 - S...
Author: powella
Date: Sun Apr 19 16:50:48 2009
New Revision: 2482
Modified:
trunk/ui/ui.slider.js
Log:
updated the condition to assert that values.legnth ==2 and range: true.
(fixed #3736 - Slider: some handles get stuck when using two or more
handles)
Modified: trunk/ui/ui.slider.js
==============================================================================
--- trunk/ui/ui.slider.js (original)
+++ trunk/ui/ui.slider.js Sun Apr 19 16:50:48 2009
@@ -336,8 +336,10 @@
var otherVal = this.values(index ? 0 : 1);
- if ((index == 0 && newVal >= otherVal) || (index == 1 && newVal <=
otherVal))
- newVal = otherVal;
+ if ((this.options.values.length == 2 && this.options.range === true) &&
+ ((index == 0 && newVal > otherVal) || (index == 1 && newVal <
otherVal))){
+ newVal = otherVal;
+ }
if (newVal != this.values(index)) {
var newValues = this.values();