mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-03-20 22:40:23 +00:00
don't try next if not next
This commit is contained in:
parent
b3e4e5ae22
commit
9d12b2d601
3 changed files with 4 additions and 0 deletions
Binary file not shown.
2
docs/assets/js/bootstrap-carousel.js
vendored
2
docs/assets/js/bootstrap-carousel.js
vendored
|
|
@ -83,6 +83,8 @@
|
|||
, fallback = type == 'next' ? 'first' : 'last'
|
||||
, that = this
|
||||
|
||||
if (!$next.length) return
|
||||
|
||||
this.sliding = true
|
||||
|
||||
isCycling && this.pause()
|
||||
|
|
|
|||
2
js/bootstrap-carousel.js
vendored
2
js/bootstrap-carousel.js
vendored
|
|
@ -83,6 +83,8 @@
|
|||
, fallback = type == 'next' ? 'first' : 'last'
|
||||
, that = this
|
||||
|
||||
if (!$next.length) return
|
||||
|
||||
this.sliding = true
|
||||
|
||||
isCycling && this.pause()
|
||||
|
|
|
|||
Loading…
Reference in a new issue