aboutsummaryrefslogtreecommitdiff
path: root/docs/assets/js
diff options
context:
space:
mode:
authorJacob Thornton <[email protected]>2012-02-20 22:02:04 -0800
committerJacob Thornton <[email protected]>2012-02-20 22:02:04 -0800
commitd149a131c14bb8be32ecc306f2128dddec9e83bf (patch)
treec3ab00fb5874b758f4ed8f6b39b764a01bfc4c7f /docs/assets/js
parentf046c12bd21b03d9b34e7e5f6386f7f4b614eace (diff)
downloadbootstrap-d149a131c14bb8be32ecc306f2128dddec9e83bf.tar.xz
bootstrap-d149a131c14bb8be32ecc306f2128dddec9e83bf.zip
remake
Diffstat (limited to 'docs/assets/js')
-rw-r--r--docs/assets/js/bootstrap-carousel.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/assets/js/bootstrap-carousel.js b/docs/assets/js/bootstrap-carousel.js
index 810256e80..aef98fb05 100644
--- a/docs/assets/js/bootstrap-carousel.js
+++ b/docs/assets/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')