diff --git a/src/generators/dom/preprocess.ts b/src/generators/dom/preprocess.ts index c8cdc291d1..0dcfe6f1be 100644 --- a/src/generators/dom/preprocess.ts +++ b/src/generators/dom/preprocess.ts @@ -411,7 +411,6 @@ const preprocessors = { ); node._state = getChildState(state, { - isTopLevel: false, parentNode: node.var, parentNodes: block.getUniqueName(`${node.var}_nodes`), parentNodeName: node.name, diff --git a/src/generators/dom/visitors/IfBlock.ts b/src/generators/dom/visitors/IfBlock.ts index 33a90a32a2..e23f6a49b0 100644 --- a/src/generators/dom/visitors/IfBlock.ts +++ b/src/generators/dom/visitors/IfBlock.ts @@ -145,7 +145,6 @@ function simple( var ${name} = (${branch.condition}) && ${branch.block}(${params}, #component); `); - const isTopLevel = !state.parentNode; const mountOrIntro = branch.hasIntroMethod ? 'i' : 'm'; const targetNode = state.parentNode || '#target'; const anchorNode = state.parentNode ? 'null' : 'anchor'; @@ -248,7 +247,6 @@ function compound( var ${name} = ${current_block_type_and}${current_block_type}(${params}, #component); `); - const isTopLevel = !state.parentNode; const mountOrIntro = branches[0].hasIntroMethod ? 'i' : 'm'; const targetNode = state.parentNode || '#target'; @@ -347,7 +345,6 @@ function compoundWithOutros( `); } - const isTopLevel = !state.parentNode; const mountOrIntro = branches[0].hasIntroMethod ? 'i' : 'm'; const targetNode = state.parentNode || '#target'; const anchorNode = state.parentNode ? 'null' : 'anchor';