Elastislide icon indicating copy to clipboard operation
Elastislide copied to clipboard

How do i destroy elastislide?

Open sulzbacher opened this issue 11 years ago • 2 comments

I have a carousel on my html, in js i call the elastslide everytime a dialog open, it creates a new carousel. But when i close this dialog, the carousel have to be destroyed, and i don't now how to do! Can anyone help me?

sulzbacher avatar Jul 24 '14 17:07 sulzbacher

Having the same issue. It appears that the public functions are not available. var carousel = $carouselEl.elastislide();

I've tried the following:

  • carousel.destroy();
  • $.fn.elastislide.destroy();

Any ideas?

dcooney avatar Aug 26 '14 16:08 dcooney

I believe destroy method can be called like this:

$carouselEl.elastislide('destroy');

vytautas-k avatar Sep 23 '15 06:09 vytautas-k