aboutsummaryrefslogtreecommitdiff
path: root/docs/assets/js/bootstrap-carousel.js
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2012-12-20 13:41:08 -0800
committerMark Otto <[email protected]>2012-12-20 13:41:08 -0800
commitb6575cc72e144378dd2c1d4e6f23ac80a167c195 (patch)
tree8c7b5a288453d8f706b6e27f1de24594deda89bc /docs/assets/js/bootstrap-carousel.js
parent30d8eb3ed572f2a91c0d4de1326779dec88cd911 (diff)
downloadbootstrap-b6575cc72e144378dd2c1d4e6f23ac80a167c195.tar.xz
bootstrap-b6575cc72e144378dd2c1d4e6f23ac80a167c195.zip
fix up code snippet
Diffstat (limited to 'docs/assets/js/bootstrap-carousel.js')
-rw-r--r--docs/assets/js/bootstrap-carousel.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/assets/js/bootstrap-carousel.js b/docs/assets/js/bootstrap-carousel.js
index 6a1b21f37..4838a1684 100644
--- a/docs/assets/js/bootstrap-carousel.js
+++ b/docs/assets/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()
})
}