]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
actuall use interval option :P
authorJacob Thornton <jacobthornton@gmail.com>
Tue, 3 Jan 2012 06:57:04 +0000 (22:57 -0800)
committerJacob Thornton <jacobthornton@gmail.com>
Tue, 3 Jan 2012 06:57:04 +0000 (22:57 -0800)
js/bootstrap-carousel.js

index 5e37b0f60e0aac105c8aab4b4ef439cec0bde1fe..fa5247c97eaedbc8f783d26b16d9a5e39ae5fe7d 100644 (file)
@@ -34,7 +34,7 @@
   Carousel.prototype = {
 
     cycle: function () {
-      this.interval = setInterval($.proxy(this.next, this), 5000)
+      this.interval = setInterval($.proxy(this.next, this), this.options.interval)
       return this
     }
 
   }
 
   $.fn.carousel.defaults = {
-      interval: 5000
+    interval: 5000
   }
 
   $.fn.carousel.Constructor = Carousel