mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-02 16:04:07 +03:00
Object spread : less jQuery more ES6 (#24665)
This commit is contained in:
+4
-1
@@ -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