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

don't try next if not next

parent b3e4e5ae
Showing with 4 additions and 0 deletions
+4 -0
No preview for this file type
......@@ -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()
......
Supports Markdown
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