Does anyone know how to properly remove a thumb from a slider component? I've tried using the destroy() method, but errors are thrown once the thumb as been removed.
I have two thumbs in a slider. I can remove one as I'm sliding the other thumb around by using:
slider.thumbs[1].destroy()
Which works fine until I mouse off and try to drag the other thumb.
When I mouse down on the remaining thumb, which should be slider.thumbs[0], the error on the mouse down event is:
Uncaught TypeError: Cannot call method 'setStyle' of undefined
If I remove the same thumb I'm sliding, then on the next mouse down to slide the remaining thumb, the errors are:
[COLOR=red !important]Uncaught TypeError: Cannot read property 'dom' of undefined ext-all.js:7[/COLOR]
[COLOR=red !important]Uncaught TypeError: Cannot call method 'setStyle' of undefined ext-all.js:7[/COLOR]
[COLOR=red !important]Uncaught TypeError: Cannot read property 'dom' of undefined [/COLOR]