mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
fix cycling in carousel
This commit is contained in:
parent
06d4756114
commit
f046c12bd2
1 changed files with 2 additions and 2 deletions
4
js/bootstrap-carousel.js
vendored
4
js/bootstrap-carousel.js
vendored
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue