mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-26 23:54:23 +01:00
hydrateObj: use default param (#37483)
This commit is contained in:
parent
0a484e7586
commit
21e036bf13
@ -300,8 +300,8 @@ const EventHandler = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function hydrateObj(obj, meta) {
|
function hydrateObj(obj, meta = {}) {
|
||||||
for (const [key, value] of Object.entries(meta || {})) {
|
for (const [key, value] of Object.entries(meta)) {
|
||||||
try {
|
try {
|
||||||
obj[key] = value
|
obj[key] = value
|
||||||
} catch {
|
} catch {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user