1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-25 21:09:06 +02:00

clear interval in cycle + rebuild

This commit is contained in:
fat
2013-02-05 20:34:39 -08:00
parent 566380b257
commit a866a51a2e
6 changed files with 19 additions and 15 deletions

View File

@@ -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))