reset carousel in the case that it is reinstantiated twice

This commit is contained in:
fat 2012-12-20 01:13:03 -08:00
parent 6b67a83631
commit 5abe33f5d8
1 changed files with 1 additions and 1 deletions

View File

@ -164,7 +164,7 @@
if (!data) $this.data('carousel', (data = new Carousel(this, options)))
if (typeof option == 'number') data.to(option)
else if (action) data[action]()
else if (options.interval) data.cycle()
else if (options.interval) data.pause().cycle()
})
}