File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
packages/compiler-vapor/src/generators Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments