aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorfat <[email protected]>2013-02-05 20:34:39 -0800
committerfat <[email protected]>2013-02-05 20:34:39 -0800
commita866a51a2ecac07748501f0375a324ebb57002f2 (patch)
tree35888cbf1e9e5ca6f541c19594f3880b9c31e78c /js
parent566380b257e5322a014fe52f935381ff86637f43 (diff)
downloadbootstrap-a866a51a2ecac07748501f0375a324ebb57002f2.tar.xz
bootstrap-a866a51a2ecac07748501f0375a324ebb57002f2.zip
clear interval in cycle + rebuild
Diffstat (limited to 'js')
-rw-r--r--js/bootstrap-carousel.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/js/bootstrap-carousel.js b/js/bootstrap-carousel.js
index 5d14e7c71..604552012 100644
--- a/js/bootstrap-carousel.js
+++ b/js/bootstrap-carousel.js
@@ -39,6 +39,7 @@
cycle: function (e) {
if (!e) this.paused = false
+ if (this.interval) clearInterval(this.interval);
this.options.interval
&& !this.paused
&& (this.interval = setInterval($.proxy(this.next, this), this.options.interval))