don't try next if not next
This commit is contained in:
parent
b3e4e5ae22
commit
9d12b2d601
Binary file not shown.
|
@ -83,6 +83,8 @@
|
|||
, fallback = type == 'next' ? 'first' : 'last'
|
||||
, that = this
|
||||
|
||||
if (!$next.length) return
|
||||
|
||||
this.sliding = true
|
||||
|
||||
isCycling && this.pause()
|
||||
|
|
|
@ -83,6 +83,8 @@
|
|||
, fallback = type == 'next' ? 'first' : 'last'
|
||||
, that = this
|
||||
|
||||
if (!$next.length) return
|
||||
|
||||
this.sliding = true
|
||||
|
||||
isCycling && this.pause()
|
||||
|
|
Loading…
Reference in New Issue