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

fixes #9461 - Make carousel ignore non-items in carousel-inner

This commit is contained in:
fat
2014-03-24 19:15:58 -07:00
parent b3f30bb70e
commit 4a2d337bf5
2 changed files with 29 additions and 1 deletions

View File

@@ -48,7 +48,7 @@
Carousel.prototype.getActiveIndex = function () {
this.$active = this.$element.find('.item.active')
this.$items = this.$active.parent().children()
this.$items = this.$active.parent().children('.item')
return this.$items.index(this.$active)
}