Fixing #2689 correctly, checking outro.is_local for adding if(local).

pull/2953/head
Benjamin W. Broersma 6 years ago committed by Conv
parent 86c08c6e2e
commit a5cdc13b50

@ -510,7 +510,7 @@ export default class EachBlockWrapper extends Wrapper {
if (outro_block) { if (outro_block) {
block.builders.outro.add_block(deindent` block.builders.outro.add_block(deindent`
${iterations} = ${iterations}.filter(Boolean); ${iterations} = ${iterations}.filter(Boolean);
for (let #i = 0; #i < ${view_length}; #i += 1) ${outro_block}(#i, 0);` for (let #i = 0; #i < ${view_length}; #i += 1) ${outro_block}(#i, 0, 0);`
); );
} }

@ -744,7 +744,7 @@ export default class ElementWrapper extends Wrapper {
${outro_name} = @create_out_transition(${this.var}, ${fn}, ${snippet}); ${outro_name} = @create_out_transition(${this.var}, ${fn}, ${snippet});
`; `;
if (outro_block) { if (outro.is_local) {
outro_block = deindent` outro_block = deindent`
if (#local) { if (#local) {
${outro_block} ${outro_block}

Loading…
Cancel
Save