Commit 9d12b2d6 authored by Jacob Thornton's avatar Jacob Thornton

don't try next if not next

parent b3e4e5ae
...@@ -83,6 +83,8 @@ ...@@ -83,6 +83,8 @@
, fallback = type == 'next' ? 'first' : 'last' , fallback = type == 'next' ? 'first' : 'last'
, that = this , that = this
if (!$next.length) return
this.sliding = true this.sliding = true
isCycling && this.pause() isCycling && this.pause()
......
...@@ -83,6 +83,8 @@ ...@@ -83,6 +83,8 @@
, fallback = type == 'next' ? 'first' : 'last' , fallback = type == 'next' ? 'first' : 'last'
, that = this , that = this
if (!$next.length) return
this.sliding = true this.sliding = true
isCycling && this.pause() isCycling && this.pause()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment