From a2bb5c524e4d7c02baa4de403aa1462b752b3737 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Wed, 22 Nov 2017 17:50:56 -0500 Subject: [PATCH] remove unused property --- src/generators/dom/preprocess.ts | 1 - src/generators/dom/visitors/IfBlock.ts | 3 --- 2 files changed, 4 deletions(-) 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';