Skip to content

Commit

Permalink
fix(runtime-vapor): properly normalize emits options if emits is an a…
Browse files Browse the repository at this point in the history
…rray
  • Loading branch information
edison1105 committed Dec 26, 2024
1 parent ef6986f commit 218e786
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/runtime-vapor/src/componentEmits.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export function normalizeEmitsOptions(
let normalized: ObjectEmitsOptions
if (isArray(raw)) {
normalized = {}
for (const key in raw) normalized[key] = null
for (const key of raw) normalized[key] = null
} else {
normalized = raw
}
Expand Down

0 comments on commit 218e786

Please sign in to comment.