jaysalvat/vegas — Issue #12: Destroy Slideshow 
Author: prisonerjohn
Created: 2012-03-01 15:18:14+00:00
State: open

I'm building a site where a new slideshow is created on selection of a thumbnail from an index view, and I am having problems destroying and rebuilding a vegas slideshow.

I create a slideshow by calling `$.vegas('slideshow', { backgrounds:myArrayOfSlides });` This works fine.

I delete a slideshow by calling `$.vegas('destroy');` This appears to work fine.

I create a new slideshow by calling `$.vegas('slideshow', { backgrounds:myNewArrayOfSlides });` When I do this I get the following errors:
* `jquery.vegas.js:276 Uncaught TypeError: Cannot call method 'get' of null`
* `jquery.vegas.js:95Uncaught TypeError: Cannot call method 'is' of null`

It looks like the problem is that `$current` is `undefined`.

Any clues on how to do this? Thanks!