aboutsummaryrefslogtreecommitdiff
path: root/js/carousel.js
diff options
context:
space:
mode:
authorfat <[email protected]>2014-03-24 19:15:58 -0700
committerfat <[email protected]>2014-03-24 19:23:39 -0700
commit4a2d337bf5f329eac1ca16208414ec1ebfe0546e (patch)
treed910ebaae13d5fca3036f2b122579233c5253606 /js/carousel.js
parentb3f30bb70efc5211520d7a55596becebc5d14662 (diff)
downloadbootstrap-4a2d337bf5f329eac1ca16208414ec1ebfe0546e.tar.xz
bootstrap-4a2d337bf5f329eac1ca16208414ec1ebfe0546e.zip
fixes #9461 - Make carousel ignore non-items in carousel-inner
Diffstat (limited to 'js/carousel.js')
-rw-r--r--js/carousel.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/carousel.js b/js/carousel.js
index 19e9af1ed..6d6fa0aee 100644
--- a/js/carousel.js
+++ b/js/carousel.js
@@ -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)
}