Skip to content

Commit

Permalink
hydrateObj: use default param
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Oct 4, 2022
1 parent 679f388 commit 1f2f891
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 @@ -301,8 +301,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 1f2f891

Please sign in to comment.