diff options
author | fat <jacobthornton@gmail.com> | 2013-02-06 08:34:39 +0400 |
---|---|---|
committer | fat <jacobthornton@gmail.com> | 2013-02-06 08:34:39 +0400 |
commit | a866a51a2ecac07748501f0375a324ebb57002f2 (patch) | |
tree | 35888cbf1e9e5ca6f541c19594f3880b9c31e78c /js/bootstrap-carousel.js | |
parent | 566380b257e5322a014fe52f935381ff86637f43 (diff) |
clear interval in cycle + rebuild
Diffstat (limited to 'js/bootstrap-carousel.js')
-rw-r--r-- | js/bootstrap-carousel.js | 1 |
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)) |