Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do i destroy elastislide? #34

Open
sulzbacher opened this issue Jul 24, 2014 · 2 comments
Open

How do i destroy elastislide? #34

sulzbacher opened this issue Jul 24, 2014 · 2 comments

Comments

@sulzbacher
Copy link

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
Copy link

dcooney commented Aug 26, 2014

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?

@vytautas-k
Copy link

I believe destroy method can be called like this:

$carouselEl.elastislide('destroy');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants