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:
authorJohann-S <johann.servoire@gmail.com>2018-04-13 12:52:12 +0300
committerJohann-S <johann.servoire@gmail.com>2018-04-13 19:59:30 +0300
commitba10b63c9da3c0fab5611e8001e490af527b8c7a (patch)
tree1f2232242d0c22509c99e4e3c298e7b351cecf91 /js/src/collapse.js
parentc3caf7ee4e1e6403169ec36e1b1bef36f894c16a (diff)
fix issue related to Object.keys and Dropdown issue
Diffstat (limited to 'js/src/collapse.js')
-rw-r--r--js/src/collapse.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/collapse.js b/js/src/collapse.js
index c3b3599ecc..e22cf0b7ab 100644
--- a/js/src/collapse.js
+++ b/js/src/collapse.js
@@ -331,7 +331,7 @@ const Collapse = (($) => {
const _config = {
...Default,
...$this.data(),
- ...typeof config === 'object' && config
+ ...typeof config === 'object' && config ? config : {}
}
if (!data && _config.toggle && /show|hide/.test(config)) {