|
|
|
@ -36,8 +36,9 @@ export function head(render_fn) {
|
|
|
|
() => {
|
|
|
|
() => {
|
|
|
|
if (dom !== null) {
|
|
|
|
if (dom !== null) {
|
|
|
|
remove(dom);
|
|
|
|
remove(dom);
|
|
|
|
head_effect.dom = block.d = dom = null;
|
|
|
|
head_effect.dom = dom = null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
let anchor = null;
|
|
|
|
let anchor = null;
|
|
|
|
if (!hydrating) {
|
|
|
|
if (!hydrating) {
|
|
|
|
anchor = empty();
|
|
|
|
anchor = empty();
|
|
|
|
@ -51,9 +52,8 @@ export function head(render_fn) {
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
head_effect.ondestroy = () => {
|
|
|
|
head_effect.ondestroy = () => {
|
|
|
|
const current = block.d;
|
|
|
|
if (dom !== null) {
|
|
|
|
if (current !== null) {
|
|
|
|
remove(dom);
|
|
|
|
remove(current);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
} finally {
|
|
|
|
} finally {
|
|
|
|
|