From: Jacob Thornton Date: Tue, 21 Feb 2012 06:01:38 +0000 (-0800) Subject: fix cycling in carousel X-Git-Tag: v2.0.2~123^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f046c12bd21b03d9b34e7e5f6386f7f4b614eace;p=thirdparty%2Fbootstrap.git fix cycling in carousel --- diff --git a/js/bootstrap-carousel.js b/js/bootstrap-carousel.js index 810256e80a..aef98fb05a 100644 --- a/js/bootstrap-carousel.js +++ b/js/bootstrap-carousel.js @@ -83,14 +83,14 @@ , fallback = type == 'next' ? 'first' : 'last' , that = this - if (!$next.length) return - this.sliding = true isCycling && this.pause() $next = $next.length ? $next : this.$element.find('.item')[fallback]() + if ($next.hasClass('active')) return + if (!$.support.transition && this.$element.hasClass('slide')) { this.$element.trigger('slide') $active.removeClass('active')