[PATCH] sliderMoveTo for multiple handles
|Reported by:||nostrademons||Owned by:||paul|
There're several folks asking for multiple-handle sliderMoveTo on the UI list:
Kalath e-mailed me off-list and asked about it, and I wrote up a quick patch. It adds an extra parameter to sliderMoveTo which is the (zero-based) index of the handle to move, so to move the 3rd handle to 40 you'd do:
$('#slider').sliderMoveTo(40, null, null, null, 2);
The patch moves most of the body of moveTo() into an inner function that takes the interaction handle, and then calls that function with either this.interaction (single handle) or this.interactions[which] (multiple handles). All the rest of the touched lines are indentation changes or this->self swaps to make the moveTo body work inside an inner function.