Skip to content

Commit

Permalink
Fixing #2689 correctly, checking outro.is_local for adding if(local).
Browse files Browse the repository at this point in the history
  • Loading branch information
bwbroersma authored and Conduitry committed Jun 4, 2019
1 parent 86c08c6 commit a5cdc13
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/compiler/compile/render-dom/wrappers/EachBlock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ export default class EachBlockWrapper extends Wrapper {
if (outro_block) {
block.builders.outro.add_block(deindent`
${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);`
);
}

Expand Down
2 changes: 1 addition & 1 deletion src/compiler/compile/render-dom/wrappers/Element/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,7 @@ export default class ElementWrapper extends Wrapper {
${outro_name} = @create_out_transition(${this.var}, ${fn}, ${snippet});
`;

if (outro_block) {
if (outro.is_local) {
outro_block = deindent`
if (#local) {
${outro_block}
Expand Down

0 comments on commit a5cdc13

Please sign in to comment.