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>2013-02-06 09:08:56 +0400
committerfat <jacobthornton@gmail.com>2013-02-06 09:08:56 +0400
commita4b31d39a26bf493d60d4aaadddd19996966e43c (patch)
treea4123846f514a37ca0a82da9dbbe64fcc87fbc54 /js/bootstrap-collapse.js
parenta866a51a2ecac07748501f0375a324ebb57002f2 (diff)
don't hide if already hidden ya n00b
Diffstat (limited to 'js/bootstrap-collapse.js')
-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 20b2eb90a8..7bbad8e43a 100644
--- a/js/bootstrap-collapse.js
+++ b/js/bootstrap-collapse.js
@@ -72,7 +72,7 @@
, hide: function () {
var dimension
- if (this.transitioning) return
+ if (this.transitioning || !this.$element.hasClass('in')) return
dimension = this.dimension()
this.reset(this.$element[dimension]())
this.transition('removeClass', $.Event('hide'), 'hidden')