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/scrollspy.js
parentc3caf7ee4e1e6403169ec36e1b1bef36f894c16a (diff)
fix issue related to Object.keys and Dropdown issue
Diffstat (limited to 'js/src/scrollspy.js')
-rw-r--r--js/src/scrollspy.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/scrollspy.js b/js/src/scrollspy.js
index 1c46940f53..d8cf69473b 100644
--- a/js/src/scrollspy.js
+++ b/js/src/scrollspy.js
@@ -165,7 +165,7 @@ const ScrollSpy = (($) => {
_getConfig(config) {
config = {
...Default,
- ...config
+ ...typeof config === 'object' && config ? config : {}
}
if (typeof config.target !== 'string') {