Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Thornton <jacobthornton@gmail.com>2012-02-21 10:02:04 +0400
committerJacob Thornton <jacobthornton@gmail.com>2012-02-21 10:02:04 +0400
commitd149a131c14bb8be32ecc306f2128dddec9e83bf (patch)
treec3ab00fb5874b758f4ed8f6b39b764a01bfc4c7f /docs/assets/js/bootstrap-carousel.js
parentf046c12bd21b03d9b34e7e5f6386f7f4b614eace (diff)
remake
Diffstat (limited to 'docs/assets/js/bootstrap-carousel.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 810256e80a..aef98fb05a 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')