From c028e333586c7ecdbc4cec6ca88ea99b26a11358 Mon Sep 17 00:00:00 2001 From: Barryvdh Date: Fri, 8 Jun 2012 16:19:08 +0300 Subject: Scope finding the .active to .item --- js/bootstrap-carousel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js') diff --git a/js/bootstrap-carousel.js b/js/bootstrap-carousel.js index f8f3c64515..3fda7c6660 100644 --- a/js/bootstrap-carousel.js +++ b/js/bootstrap-carousel.js @@ -88,7 +88,7 @@ } , slide: function (type, next) { - var $active = this.$element.find('.active') + var $active = this.$element.find('.item.active') , $next = next || $active[type]() , isCycling = this.interval , direction = type == 'next' ? 'left' : 'right' -- cgit v1.2.3