aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorfat <[email protected]>2013-02-05 21:08:56 -0800
committerfat <[email protected]>2013-02-05 21:08:56 -0800
commita4b31d39a26bf493d60d4aaadddd19996966e43c (patch)
treea4123846f514a37ca0a82da9dbbe64fcc87fbc54 /js
parenta866a51a2ecac07748501f0375a324ebb57002f2 (diff)
downloadbootstrap-a4b31d39a26bf493d60d4aaadddd19996966e43c.tar.xz
bootstrap-a4b31d39a26bf493d60d4aaadddd19996966e43c.zip
don't hide if already hidden ya n00b
Diffstat (limited to '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 20b2eb90a..7bbad8e43 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')