Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfat <jacobthornton@gmail.com>2013-02-06 08:34:39 +0400
committerfat <jacobthornton@gmail.com>2013-02-06 08:34:39 +0400
commita866a51a2ecac07748501f0375a324ebb57002f2 (patch)
tree35888cbf1e9e5ca6f541c19594f3880b9c31e78c /js/bootstrap-carousel.js
parent566380b257e5322a014fe52f935381ff86637f43 (diff)
clear interval in cycle + rebuild
Diffstat (limited to 'js/bootstrap-carousel.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 5d14e7c711..604552012b 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))