aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorJacob Thornton <[email protected]>2012-02-16 20:43:57 -0800
committerJacob Thornton <[email protected]>2012-02-16 20:43:57 -0800
commit9d12b2d60168505fdb68672f6fe7992bb264da90 (patch)
treedd1685169de3abd12b2664aec34ad9fd13656c1e /js
parentb3e4e5ae2212c4bda6424815871499d9c7693ee6 (diff)
downloadbootstrap-9d12b2d60168505fdb68672f6fe7992bb264da90.tar.xz
bootstrap-9d12b2d60168505fdb68672f6fe7992bb264da90.zip
don't try next if not next
Diffstat (limited to 'js')
-rw-r--r--js/bootstrap-carousel.js2
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()