mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
actuall use interval option :P
This commit is contained in:
parent
e89618a47f
commit
5661855be3
1 changed files with 2 additions and 2 deletions
4
js/bootstrap-carousel.js
vendored
4
js/bootstrap-carousel.js
vendored
|
@ -34,7 +34,7 @@
|
||||||
Carousel.prototype = {
|
Carousel.prototype = {
|
||||||
|
|
||||||
cycle: function () {
|
cycle: function () {
|
||||||
this.interval = setInterval($.proxy(this.next, this), 5000)
|
this.interval = setInterval($.proxy(this.next, this), this.options.interval)
|
||||||
return this
|
return this
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -100,7 +100,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
$.fn.carousel.defaults = {
|
$.fn.carousel.defaults = {
|
||||||
interval: 5000
|
interval: 5000
|
||||||
}
|
}
|
||||||
|
|
||||||
$.fn.carousel.Constructor = Carousel
|
$.fn.carousel.Constructor = Carousel
|
||||||
|
|
Loading…
Add table
Reference in a new issue