|
|
|
@ -301,18 +301,15 @@ export default class EachBlockWrapper extends Wrapper {
|
|
|
|
|
const has_transitions = !!(this.else.block.has_intro_method || this.else.block.has_outro_method);
|
|
|
|
|
|
|
|
|
|
const destroy_block_else = this.else.block.has_outro_method
|
|
|
|
|
?
|
|
|
|
|
b`
|
|
|
|
|
? b`
|
|
|
|
|
@group_outros();
|
|
|
|
|
@transition_out(${each_block_else}, 1, 1, () => {
|
|
|
|
|
${each_block_else} = null;
|
|
|
|
|
});
|
|
|
|
|
@check_outros();
|
|
|
|
|
`
|
|
|
|
|
@check_outros();`
|
|
|
|
|
: b`
|
|
|
|
|
${each_block_else}.d(1);
|
|
|
|
|
${each_block_else} = null;
|
|
|
|
|
`;
|
|
|
|
|
${each_block_else} = null;`;
|
|
|
|
|
|
|
|
|
|
if (this.else.block.has_update_method) {
|
|
|
|
|
this.updates.push(b`
|
|
|
|
@ -328,7 +325,6 @@ export default class EachBlockWrapper extends Wrapper {
|
|
|
|
|
}
|
|
|
|
|
`);
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
|
|
this.updates.push(b`
|
|
|
|
|
if (${this.vars.data_length}) {
|
|
|
|
|
if (${each_block_else}) {
|
|
|
|
|