mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-27 07:14:36 +02:00
Object spread : less jQuery more ES6 (#24665)
This commit is contained in:
@@ -171,7 +171,10 @@ const ScrollSpy = (($) => {
|
||||
// private
|
||||
|
||||
_getConfig(config) {
|
||||
config = $.extend({}, Default, config)
|
||||
config = {
|
||||
...Default,
|
||||
...config
|
||||
}
|
||||
|
||||
if (typeof config.target !== 'string') {
|
||||
let id = $(config.target).attr('id')
|
||||
|
Reference in New Issue
Block a user