From: Barryvdh Date: Fri, 8 Jun 2012 13:19:08 +0000 (+0300) Subject: Scope finding the .active to .item X-Git-Tag: v2.1.0~2^2~255^2 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F3770%2Fhead;p=thirdparty%2Fbootstrap.git Scope finding the .active to .item --- 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'