Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfat <jacobthornton@gmail.com>2012-12-20 13:05:07 +0400
committerfat <jacobthornton@gmail.com>2012-12-20 13:05:07 +0400
commit2c9f43f6858597b3bbc6d4036a3bd1dd18d6181f (patch)
tree7c7ed75b46a9e47964f56dee4f2771a3cc90f52d
parentbbe4625672c5122bb2b06c495f9ea41752c10467 (diff)
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 9e72112188..6755aa7e20 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('-'))