diff options
| author | Jacob Thornton <[email protected]> | 2012-02-16 20:43:57 -0800 |
|---|---|---|
| committer | Jacob Thornton <[email protected]> | 2012-02-16 20:43:57 -0800 |
| commit | 9d12b2d60168505fdb68672f6fe7992bb264da90 (patch) | |
| tree | dd1685169de3abd12b2664aec34ad9fd13656c1e /js/bootstrap-carousel.js | |
| parent | b3e4e5ae2212c4bda6424815871499d9c7693ee6 (diff) | |
| download | bootstrap-9d12b2d60168505fdb68672f6fe7992bb264da90.tar.xz bootstrap-9d12b2d60168505fdb68672f6fe7992bb264da90.zip | |
don't try next if not next
Diffstat (limited to 'js/bootstrap-carousel.js')
| -rw-r--r-- | js/bootstrap-carousel.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/js/bootstrap-carousel.js b/js/bootstrap-carousel.js index 374697994..bad4f46f4 100644 --- a/js/bootstrap-carousel.js +++ b/js/bootstrap-carousel.js @@ -83,6 +83,8 @@ , fallback = type == 'next' ? 'first' : 'last' , that = this + if (!$next.length) return + this.sliding = true isCycling && this.pause() |
