diff options
Diffstat (limited to 'js/dist/scrollspy.js')
-rw-r--r-- | js/dist/scrollspy.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/dist/scrollspy.js b/js/dist/scrollspy.js index 70a48cfbd2..4990692cce 100644 --- a/js/dist/scrollspy.js +++ b/js/dist/scrollspy.js @@ -146,7 +146,7 @@ var ScrollSpy = function ($) { _proto._getConfig = function _getConfig(config) { - config = _objectSpread({}, Default, config); + config = _objectSpread({}, Default, typeof config === 'object' && config ? config : {}); if (typeof config.target !== 'string') { var id = $(config.target).attr('id'); |