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-08 10:13:13 +0400
committerfat <jacobthornton@gmail.com>2013-02-08 10:13:13 +0400
commit8c7f9c66a7d12f47f50618ef420868fe836d0c33 (patch)
tree552f251d1637a1749c34fcdbb3390653d2fdb8ae /docs/assets/js/bootstrap-collapse.js
parentee91afba63bc6e9687397b9052858fca242c2ff5 (diff)
parentc4d47fb1ea45ed2fc3cf382d087ed87b87c69288 (diff)
Merge branch '2.3.0-wip'v2.3.0
Diffstat (limited to 'docs/assets/js/bootstrap-collapse.js')
-rw-r--r--docs/assets/js/bootstrap-collapse.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/assets/js/bootstrap-collapse.js b/docs/assets/js/bootstrap-collapse.js
index 6ac0191a50..7bbad8e43a 100644
--- a/docs/assets/js/bootstrap-collapse.js
+++ b/docs/assets/js/bootstrap-collapse.js
@@ -1,5 +1,5 @@
/* =============================================================
- * bootstrap-collapse.js v2.2.2
+ * bootstrap-collapse.js v2.3.0
* http://twitter.github.com/bootstrap/javascript.html#collapse
* =============================================================
* Copyright 2012 Twitter, Inc.
@@ -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('-'))
@@ -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')
@@ -129,7 +129,7 @@
return this.each(function () {
var $this = $(this)
, data = $this.data('collapse')
- , options = typeof option == 'object' && option
+ , options = $.extend({}, $.fn.collapse.defaults, $this.data(), typeof option == 'object' && option)
if (!data) $this.data('collapse', (data = new Collapse(this, options)))
if (typeof option == 'string') data[option]()
})