From 9d12b2d60168505fdb68672f6fe7992bb264da90 Mon Sep 17 00:00:00 2001 From: Jacob Thornton Date: Thu, 16 Feb 2012 20:43:57 -0800 Subject: don't try next if not next --- docs/assets/bootstrap.zip | Bin 53181 -> 53191 bytes docs/assets/js/bootstrap-carousel.js | 2 ++ js/bootstrap-carousel.js | 2 ++ 3 files changed, 4 insertions(+) diff --git a/docs/assets/bootstrap.zip b/docs/assets/bootstrap.zip index a68034b6a..0aad46dec 100644 Binary files a/docs/assets/bootstrap.zip and b/docs/assets/bootstrap.zip differ diff --git a/docs/assets/js/bootstrap-carousel.js b/docs/assets/js/bootstrap-carousel.js index 374697994..bad4f46f4 100644 --- a/docs/assets/js/bootstrap-carousel.js +++ b/docs/assets/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() 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() -- cgit v1.2.3