Skip to content

Commit 9d12b2d

Browse files
committed
don't try next if not next
1 parent b3e4e5a commit 9d12b2d

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

docs/assets/bootstrap.zip

10 Bytes
Binary file not shown.

docs/assets/js/bootstrap-carousel.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@
8383
, fallback = type == 'next' ? 'first' : 'last'
8484
, that = this
8585

86+
if (!$next.length) return
87+
8688
this.sliding = true
8789

8890
isCycling && this.pause()

js/bootstrap-carousel.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@
8383
, fallback = type == 'next' ? 'first' : 'last'
8484
, that = this
8585

86+
if (!$next.length) return
87+
8688
this.sliding = true
8789

8890
isCycling && this.pause()

0 commit comments

Comments
 (0)