codrops / Elastislide

Elastislide is a responsive image carousel that will adapt fluidly in a layout. It is a jQuery plugin that can be laid out horizontally or vertically with a pre-defined minimum number of shown images
362 stars 111 forks source link

How do i destroy elastislide? #34

Open sulzbacher opened 9 years ago

sulzbacher commented 9 years ago

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?

dcooney commented 9 years ago

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

I've tried the following:

Any ideas?

vytautas-k commented 8 years ago

I believe destroy method can be called like this:

$carouselEl.elastislide('destroy');