Skip to content

Commit

Permalink
don't try next if not next
Browse files Browse the repository at this point in the history
  • Loading branch information
fat committed Feb 17, 2012
1 parent b3e4e5a commit 9d12b2d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
Binary file modified docs/assets/bootstrap.zip
Binary file not shown.
2 changes: 2 additions & 0 deletions docs/assets/js/bootstrap-carousel.js
Expand Up @@ -83,6 +83,8 @@
, fallback = type == 'next' ? 'first' : 'last'
, that = this

if (!$next.length) return

this.sliding = true

isCycling && this.pause()
Expand Down
2 changes: 2 additions & 0 deletions js/bootstrap-carousel.js
Expand Up @@ -83,6 +83,8 @@
, fallback = type == 'next' ? 'first' : 'last'
, that = this

if (!$next.length) return

this.sliding = true

isCycling && this.pause()
Expand Down

1 comment on commit 9d12b2d

@davidlehn
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commit prevents the carousel from cycling. See #2036.

Please sign in to comment.