remove unused property

pull/924/head
Rich Harris 8 years ago
parent b49f7474ec
commit a2bb5c524e

@ -411,7 +411,6 @@ const preprocessors = {
); );
node._state = getChildState(state, { node._state = getChildState(state, {
isTopLevel: false,
parentNode: node.var, parentNode: node.var,
parentNodes: block.getUniqueName(`${node.var}_nodes`), parentNodes: block.getUniqueName(`${node.var}_nodes`),
parentNodeName: node.name, parentNodeName: node.name,

@ -145,7 +145,6 @@ function simple(
var ${name} = (${branch.condition}) && ${branch.block}(${params}, #component); var ${name} = (${branch.condition}) && ${branch.block}(${params}, #component);
`); `);
const isTopLevel = !state.parentNode;
const mountOrIntro = branch.hasIntroMethod ? 'i' : 'm'; const mountOrIntro = branch.hasIntroMethod ? 'i' : 'm';
const targetNode = state.parentNode || '#target'; const targetNode = state.parentNode || '#target';
const anchorNode = state.parentNode ? 'null' : 'anchor'; const anchorNode = state.parentNode ? 'null' : 'anchor';
@ -248,7 +247,6 @@ function compound(
var ${name} = ${current_block_type_and}${current_block_type}(${params}, #component); var ${name} = ${current_block_type_and}${current_block_type}(${params}, #component);
`); `);
const isTopLevel = !state.parentNode;
const mountOrIntro = branches[0].hasIntroMethod ? 'i' : 'm'; const mountOrIntro = branches[0].hasIntroMethod ? 'i' : 'm';
const targetNode = state.parentNode || '#target'; const targetNode = state.parentNode || '#target';
@ -347,7 +345,6 @@ function compoundWithOutros(
`); `);
} }
const isTopLevel = !state.parentNode;
const mountOrIntro = branches[0].hasIntroMethod ? 'i' : 'm'; const mountOrIntro = branches[0].hasIntroMethod ? 'i' : 'm';
const targetNode = state.parentNode || '#target'; const targetNode = state.parentNode || '#target';
const anchorNode = state.parentNode ? 'null' : 'anchor'; const anchorNode = state.parentNode ? 'null' : 'anchor';

Loading…
Cancel
Save