Skip to content

Commit

Permalink
follow-up fix to sveltejs#2871
Browse files Browse the repository at this point in the history
  • Loading branch information
Harald-1 committed May 30, 2019
1 parent 90b23e2 commit 3406043
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/compiler/compile/render-dom/wrappers/Element/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -775,11 +775,10 @@ export default class ElementWrapper extends Wrapper {
${rect} = ${this.var}.getBoundingClientRect();
`);

const prepare_outro = outro ? `@prepare_outro(${this.var}, ${rect})` : ``;
block.builders.fix.add_block(deindent`
@fix_position(${this.var});
${stop_animation}();
${prepare_outro}
${outro && `@prepare_outro(${this.var}, ${rect});`}
`);

const params = this.node.animation.expression ? this.node.animation.expression.render(block) : '{}';
Expand Down

0 comments on commit 3406043

Please sign in to comment.