Skip to content

Commit

Permalink
Fixing sveltejs#2689 correctly, checking outro.is_local for adding if…
Browse files Browse the repository at this point in the history
…(local).
  • Loading branch information
bwbroersma committed May 5, 2019
1 parent 1d23ef9 commit 5784344
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/compile/render-dom/wrappers/EachBlock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,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, local);`
for (let #i = 0; #i < ${view_length}; #i += 1) ${outro_block}(#i, 0, 0);`
);
}

Expand Down
2 changes: 1 addition & 1 deletion src/compile/render-dom/wrappers/Element/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,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 5784344

Please sign in to comment.