Skip to content

Commit 8a58533

Browse files
committed
little fix for components
1 parent 5fa9dff commit 8a58533

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/happyx/spa/components.nim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -817,7 +817,7 @@ macro component*(name, body: untyped): untyped =
817817
componentConstructors,
818818
reRenderProc,
819819
newProc(
820-
ident"script",
820+
postfix(ident"script", "*"),
821821
[
822822
newEmptyNode(),
823823
newIdentDefs(ident"self", ident(componentName))
@@ -837,7 +837,7 @@ macro component*(name, body: untyped): untyped =
837837
newNimNode(nnkPragma).add(ident"gcsafe")
838838
),
839839
newProc(
840-
ident"style",
840+
postfix(ident"style", "*"),
841841
[
842842
ident"string",
843843
newIdentDefs(ident"self", ident(componentName))

0 commit comments

Comments
 (0)