diff options
| author | Mark Otto <[email protected]> | 2014-01-18 14:11:55 -0800 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2014-01-18 14:11:55 -0800 |
| commit | cd1bea0616a8fb1b94d8021bc8dbc0cbc2eaf4aa (patch) | |
| tree | 0c0a716f3f567c7bd17fb9f6fb254100d78d0e18 /js/collapse.js | |
| parent | b121207e10ad20e6d1d8dc269f71697ad26a67e6 (diff) | |
| parent | b1721f42cc8298fb691530614ee6d52389872e25 (diff) | |
| download | bootstrap-cd1bea0616a8fb1b94d8021bc8dbc0cbc2eaf4aa.tar.xz bootstrap-cd1bea0616a8fb1b94d8021bc8dbc0cbc2eaf4aa.zip | |
Merge branch 'master' into bg-variant
Diffstat (limited to 'js/collapse.js')
| -rw-r--r-- | js/collapse.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/js/collapse.js b/js/collapse.js index 1857cba16..004beaa69 100644 --- a/js/collapse.js +++ b/js/collapse.js @@ -127,6 +127,7 @@ var data = $this.data('bs.collapse') var options = $.extend({}, Collapse.DEFAULTS, $this.data(), typeof option == 'object' && option) + if (!data && options.toggle && option == 'show') option = !option if (!data) $this.data('bs.collapse', (data = new Collapse(this, options))) if (typeof option == 'string') data[option]() }) |
