]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Scope finding the .active to .item 3770/head
authorBarryvdh <barryvdh@gmail.com>
Fri, 8 Jun 2012 13:19:08 +0000 (16:19 +0300)
committerBarryvdh <barryvdh@gmail.com>
Fri, 8 Jun 2012 13:19:08 +0000 (16:19 +0300)
js/bootstrap-carousel.js

index f8f3c64515c8ebaa8b3da906bd98724f792be1a7..3fda7c66608f8ad4b7010740b8d74acdfda82976 100644 (file)
@@ -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'