From: Jacob Thornton Date: Fri, 17 Feb 2012 04:43:57 +0000 (-0800) Subject: don't try next if not next X-Git-Tag: v2.0.1~1^2~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9d12b2d60168505fdb68672f6fe7992bb264da90;p=thirdparty%2Fbootstrap.git don't try next if not next --- diff --git a/docs/assets/bootstrap.zip b/docs/assets/bootstrap.zip index a68034b6ad..0aad46dec2 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 374697994c..bad4f46f46 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 374697994c..bad4f46f46 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()