pull/644/head
Paul Sauve 8 years ago
parent 30d855b089
commit dc0dedf3fe

@ -271,9 +271,14 @@ function compound(
`);
}
block.builders.destroy.addLine(
block.builders.unmount.addLine(
`${if_name}{
${name}.unmount();
}`
);
block.builders.destroy.addLine(
`${if_name}{
${name}.destroy();
}`
);

@ -164,12 +164,14 @@ function create_main_fragment ( state, component ) {
},
unmount: function () {
{
if_block.unmount();
}
detachNode( if_block_anchor );
},
destroy: function () {
{
if_block.unmount();
if_block.destroy();
}
}

@ -29,12 +29,14 @@ function create_main_fragment ( state, component ) {
},
unmount: function () {
{
if_block.unmount();
}
detachNode( if_block_anchor );
},
destroy: function () {
{
if_block.unmount();
if_block.destroy();
}
}
@ -116,4 +118,4 @@ SvelteComponent.prototype.teardown = SvelteComponent.prototype.destroy = functio
this._torndown = true;
};
export default SvelteComponent;
export default SvelteComponent;

Loading…
Cancel
Save