Skip to content

Commit

Permalink
chore: fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
edison1105 committed Dec 16, 2024
1 parent 645a402 commit ed5fac5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/compiler-vapor/src/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class CodegenContext {

identifiers: Record<string, string[]> = Object.create(null)

seemInlineHandlerNames: Record<string, number> = Object.create(null)
seenInlineHandlerNames: Record<string, number> = Object.create(null)

block: BlockIRNode
withId<T>(fn: () => T, map: Record<string, string | null>): T {
Expand Down
6 changes: 3 additions & 3 deletions packages/compiler-vapor/src/generators/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ function getUniqueHandlerName(
context: CodegenContext,
name: string
): string {
const { seemInlineHandlerNames } = context
const count = seemInlineHandlerNames[name] || 0
seemInlineHandlerNames[name] = count + 1
const { seenInlineHandlerNames } = context
const count = seenInlineHandlerNames[name] || 0
seenInlineHandlerNames[name] = count + 1
return count === 0 ? name : `${name}${count}`
}

Expand Down

0 comments on commit ed5fac5

Please sign in to comment.