Skip to content

Commit

Permalink
fix(Script): add empty array as initial value for ::before and ::afte…
Browse files Browse the repository at this point in the history
…r handlers
  • Loading branch information
meszaros-lajos-gyorgy committed Oct 21, 2023
1 parent 7796ac2 commit 7b82ec3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ export class Script {
properties: ScriptProperty<any>[] = []
subroutines: ScriptSubroutine[] = []
eventHandlers: Record<string, ScriptHandler[]> = {
'::before': [],
'::after': [],
init: [],
}

Expand Down

0 comments on commit 7b82ec3

Please sign in to comment.