I figured out that I could just remove the events of the next/prev buttons before recreating the carousel.
Thanks Aaron On Jan 31, 6:07 pm, Aaron Newton <[email protected]> wrote: > you need a way to detach it. I've pushed a new version to github, but not > to clientcide yet. You can fetch it from there and it should solve your > problem (use the new .detach() method). > > > > On Sat, Jan 30, 2010 at 8:16 PM, mmjaeger <[email protected]> wrote: > > Hello > > > I'm using the SimpleSlide.Carousel for some divs that get dynamically > > created and changed from time to time so I recreate > > SimpleSlide.Carousel again like this.carousel = new > > SimpleSlide.Carousel. > > > Everything works basically as wanted with the exception of the > > Carousel events - they kind of keep stacking up which results in > > executing the onNext or onSlideDisplay multiple times. > > > How can I properly reset SimpleSlide.Carousel before recreating it to > > avoid firing of those events multiple times? > > > Thank you
