Permalink
Browse files

actuall use interval option :P

  • Loading branch information...
1 parent e89618a commit 5661855be3da81f0a46bd99c7522a93f01706289 @fat fat committed Jan 3, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 js/bootstrap-carousel.js
View
4 js/bootstrap-carousel.js
@@ -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
}
@@ -100,7 +100,7 @@
}
$.fn.carousel.defaults = {
- interval: 5000
+ interval: 5000
}
$.fn.carousel.Constructor = Carousel

0 comments on commit 5661855

Please sign in to comment.