From f071549c8408241b88a95192e477816d2402eb6e Mon Sep 17 00:00:00 2001
From: Chris Rebert <code@rebertia.com>
Date: Thu, 22 May 2014 09:00:19 -0700
Subject: [PATCH] fix #13386

---
 js/carousel.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/js/carousel.js b/js/carousel.js
index 05631f7a33..d3e7e52b4e 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
-- 
GitLab