Commit 5abe33f5 authored by fat's avatar fat
Browse files

reset carousel in the case that it is reinstantiated twice

parent 6b67a836
Showing with 1 addition and 1 deletion
+1 -1
...@@ -164,7 +164,7 @@ ...@@ -164,7 +164,7 @@
if (!data) $this.data('carousel', (data = new Carousel(this, options))) if (!data) $this.data('carousel', (data = new Carousel(this, options)))
if (typeof option == 'number') data.to(option) if (typeof option == 'number') data.to(option)
else if (action) data[action]() else if (action) data[action]()
else if (options.interval) data.cycle() else if (options.interval) data.pause().cycle()
}) })
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment