more tweaks

pull/12881/head
Dominic Gannaway 2 years ago
parent c58c17562d
commit c41e9c5aff

@ -39,7 +39,7 @@ export function template(content, flags) {
return hydrate_node;
}
if (!node) {
if (node !== undefined) {
node = create_fragment_from_html(has_start ? content : '<!>' + content);
if (!is_fragment) node = /** @type {Node} */ (get_first_child(node));
}

@ -375,8 +375,10 @@ export function destroy_effect(effect, remove_dom = true) {
remove_reactions(effect, 0);
set_signal_status(effect, DESTROYED);
if (effect.transitions) {
for (const transition of effect.transitions) {
var transitions = effect.transitions;
if (transitions !== null) {
for (const transition of transitions) {
transition.stop();
}
}

Loading…
Cancel
Save