From f046c12bd21b03d9b34e7e5f6386f7f4b614eace Mon Sep 17 00:00:00 2001 From: Jacob Thornton Date: Mon, 20 Feb 2012 22:01:38 -0800 Subject: [PATCH] fix cycling in carousel --- js/bootstrap-carousel.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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')