diff options
| author | fat <[email protected]> | 2012-12-20 01:13:03 -0800 |
|---|---|---|
| committer | fat <[email protected]> | 2012-12-20 01:13:03 -0800 |
| commit | 5abe33f5d84e8b7357f50744a7ce7d4420745dd8 (patch) | |
| tree | fd627a4d65cf5c9d686aa4d2f1314b9b6bf1cc84 | |
| parent | 6b67a836316adad78f0cc0e7244af0f0ddddf0b7 (diff) | |
| download | bootstrap-5abe33f5d84e8b7357f50744a7ce7d4420745dd8.tar.xz bootstrap-5abe33f5d84e8b7357f50744a7ce7d4420745dd8.zip | |
reset carousel in the case that it is reinstantiated twice
| -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 6a1b21f37..4838a1684 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() }) } |
