mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-21 20:55:50 +02:00
grunt
This commit is contained in:
6
dist/js/bootstrap.js
vendored
6
dist/js/bootstrap.js
vendored
@@ -354,7 +354,7 @@ if (typeof jQuery === 'undefined') {
|
||||
}
|
||||
|
||||
Carousel.prototype.getItemIndex = function (item) {
|
||||
this.$items = item.parent().children('.item')
|
||||
this.$items = item.parent().children('.carousel-item')
|
||||
return this.$items.index(item || this.$active)
|
||||
}
|
||||
|
||||
@@ -370,7 +370,7 @@ if (typeof jQuery === 'undefined') {
|
||||
|
||||
Carousel.prototype.to = function (pos) {
|
||||
var that = this
|
||||
var activeIndex = this.getItemIndex(this.$active = this.$element.find('.item.active'))
|
||||
var activeIndex = this.getItemIndex(this.$active = this.$element.find('.carousel-item.active'))
|
||||
|
||||
if (pos > (this.$items.length - 1) || pos < 0) return
|
||||
|
||||
@@ -404,7 +404,7 @@ if (typeof jQuery === 'undefined') {
|
||||
}
|
||||
|
||||
Carousel.prototype.slide = function (type, next) {
|
||||
var $active = this.$element.find('.item.active')
|
||||
var $active = this.$element.find('.carousel-item.active')
|
||||
var $next = next || this.getItemForDirection(type, $active)
|
||||
var isCycling = this.interval
|
||||
var direction = type == 'next' ? 'left' : 'right'
|
||||
|
Reference in New Issue
Block a user