]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
don't try next if not next
authorJacob Thornton <jacobthornton@gmail.com>
Fri, 17 Feb 2012 04:43:57 +0000 (20:43 -0800)
committerJacob Thornton <jacobthornton@gmail.com>
Fri, 17 Feb 2012 04:43:57 +0000 (20:43 -0800)
docs/assets/bootstrap.zip
docs/assets/js/bootstrap-carousel.js
js/bootstrap-carousel.js

index a68034b6adf15a456a5d8b28240f310c69865799..0aad46dec2c765063ebb068b208e7d65ccbfbe38 100644 (file)
Binary files a/docs/assets/bootstrap.zip and b/docs/assets/bootstrap.zip differ
index 374697994c0a8525fa4583e785bb10b72fdfcffe..bad4f46f46f907f65dbfed44c5f23f498deb389c 100644 (file)
@@ -83,6 +83,8 @@
         , fallback  = type == 'next' ? 'first' : 'last'
         , that = this
 
+      if (!$next.length) return
+
       this.sliding = true
 
       isCycling && this.pause()
index 374697994c0a8525fa4583e785bb10b72fdfcffe..bad4f46f46f907f65dbfed44c5f23f498deb389c 100644 (file)
@@ -83,6 +83,8 @@
         , fallback  = type == 'next' ? 'first' : 'last'
         , that = this
 
+      if (!$next.length) return
+
       this.sliding = true
 
       isCycling && this.pause()