0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-11-29 11:24:18 +01:00

don't try next if not next

This commit is contained in:
Jacob Thornton 2012-02-16 20:43:57 -08:00
parent b3e4e5ae22
commit 9d12b2d601
3 changed files with 4 additions and 0 deletions

Binary file not shown.

View File

@ -83,6 +83,8 @@
, fallback = type == 'next' ? 'first' : 'last'
, that = this
if (!$next.length) return
this.sliding = true
isCycling && this.pause()

View File

@ -83,6 +83,8 @@
, fallback = type == 'next' ? 'first' : 'last'
, that = this
if (!$next.length) return
this.sliding = true
isCycling && this.pause()