diff --git a/src/compilers/renderer-compiler.ts b/src/compilers/renderer-compiler.ts index 9c08f969..203f24eb 100644 --- a/src/compilers/renderer-compiler.ts +++ b/src/compilers/renderer-compiler.ts @@ -104,8 +104,8 @@ export class RendererCompiler { const item = BINARY(BINARY(I('ctx'), '.', I('data')), '[]', I('key')) return [ - ASSIGN( - I('initData'), + DEF( + 'initData', new FunctionCall(BINARY(I('instance'), '.', I('initData')), []) ), createDefaultValue(I('initData'), new MapLiteral([])),