aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfat <[email protected]>2012-12-20 01:05:07 -0800
committerfat <[email protected]>2012-12-20 01:05:07 -0800
commit2c9f43f6858597b3bbc6d4036a3bd1dd18d6181f (patch)
tree7c7ed75b46a9e47964f56dee4f2771a3cc90f52d
parentbbe4625672c5122bb2b06c495f9ea41752c10467 (diff)
downloadbootstrap-2c9f43f6858597b3bbc6d4036a3bd1dd18d6181f.tar.xz
bootstrap-2c9f43f6858597b3bbc6d4036a3bd1dd18d6181f.zip
if carousel element already open, don't reopen it duh bruh bruh
-rw-r--r--js/bootstrap-collapse.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/bootstrap-collapse.js b/js/bootstrap-collapse.js
index 9e7211218..6755aa7e2 100644
--- a/js/bootstrap-collapse.js
+++ b/js/bootstrap-collapse.js
@@ -52,7 +52,7 @@
, actives
, hasData
- if (this.transitioning) return
+ if (this.transitioning || this.$element.hasClass('in')) return
dimension = this.dimension()
scroll = $.camelCase(['scroll', dimension].join('-'))