Skip to content

Commit

Permalink
hydrateObj: use default param (#37483)
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR authored Nov 12, 2022
1 parent 0a484e7 commit 21e036b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/src/dom/event-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,8 @@ const EventHandler = {
}
}

function hydrateObj(obj, meta) {
for (const [key, value] of Object.entries(meta || {})) {
function hydrateObj(obj, meta = {}) {
for (const [key, value] of Object.entries(meta)) {
try {
obj[key] = value
} catch {
Expand Down

0 comments on commit 21e036b

Please sign in to comment.