Skip to content

Commit c8f42b6

Browse files
committed
chore: remove TODO
1 parent 1ea6ce2 commit c8f42b6

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

packages/compiler-vapor/src/generators/component.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@ export function genCreateComponent(
5353
const rawProps = context.withId(() => genRawProps(props, context), ids)
5454
const inlineHandlers: CodeFragment[] = handlers.reduce<CodeFragment[]>(
5555
(acc, { name, value }) => {
56-
// TODO should support .once modifier on component event
57-
const handler = genEventHandler(context, value, undefined,false)
56+
const handler = genEventHandler(context, value, undefined, false)
5857
return [...acc, `const ${name} = `, ...handler, NEWLINE]
5958
},
6059
[],
@@ -94,10 +93,7 @@ export function genCreateComponent(
9493
}
9594
}
9695

97-
function getUniqueHandlerName(
98-
context: CodegenContext,
99-
name: string
100-
): string {
96+
function getUniqueHandlerName(context: CodegenContext, name: string): string {
10197
const { seenInlineHandlerNames } = context
10298
const count = seenInlineHandlerNames[name] || 0
10399
seenInlineHandlerNames[name] = count + 1

0 commit comments

Comments
 (0)