diff options
author | fat <jacobthornton@gmail.com> | 2012-12-20 13:13:03 +0400 |
---|---|---|
committer | fat <jacobthornton@gmail.com> | 2012-12-20 13:13:03 +0400 |
commit | 5abe33f5d84e8b7357f50744a7ce7d4420745dd8 (patch) | |
tree | fd627a4d65cf5c9d686aa4d2f1314b9b6bf1cc84 /js/bootstrap-carousel.js | |
parent | 6b67a836316adad78f0cc0e7244af0f0ddddf0b7 (diff) |
reset carousel in the case that it is reinstantiated twice
Diffstat (limited to 'js/bootstrap-carousel.js')
-rw-r--r-- | js/bootstrap-carousel.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/bootstrap-carousel.js b/js/bootstrap-carousel.js index 6a1b21f370..4838a16847 100644 --- a/js/bootstrap-carousel.js +++ b/js/bootstrap-carousel.js @@ -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() }) } |