From a866a51a2ecac07748501f0375a324ebb57002f2 Mon Sep 17 00:00:00 2001 From: fat Date: Tue, 5 Feb 2013 20:34:39 -0800 Subject: clear interval in cycle + rebuild --- js/bootstrap-carousel.js | 1 + 1 file changed, 1 insertion(+) (limited to 'js') 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)) -- cgit v1.2.3