aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Rebert <[email protected]>2014-05-22 09:00:19 -0700
committerChris Rebert <[email protected]>2014-06-13 12:12:32 -0700
commitf071549c8408241b88a95192e477816d2402eb6e (patch)
tree54c0b9dedf8926af06178183938bd24972a6f024
parented06fd0936ba2c03ecb052eb65a89c5be94b1b8d (diff)
downloadbootstrap-f071549c8408241b88a95192e477816d2402eb6e.tar.xz
bootstrap-f071549c8408241b88a95192e477816d2402eb6e.zip
fix #13386
-rw-r--r--js/carousel.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/js/carousel.js b/js/carousel.js
index 05631f7a3..d3e7e52b4 100644
--- a/js/carousel.js
+++ b/js/carousel.js
@@ -203,6 +203,7 @@
var href
var $this = $(this)
var $target = $($this.attr('data-target') || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) //strip for ie7
+ if (!$target.hasClass('carousel')) return
var options = $.extend({}, $target.data(), $this.data())
var slideIndex = $this.attr('data-slide-to')
if (slideIndex) options.interval = false