|
|
@ -9,7 +9,7 @@ import {
|
|
|
|
HYDRATION_START
|
|
|
|
HYDRATION_START
|
|
|
|
} from '../../../../constants.js';
|
|
|
|
} from '../../../../constants.js';
|
|
|
|
import { hydrate_anchor, hydrate_nodes, hydrating, set_hydrating } from '../hydration.js';
|
|
|
|
import { hydrate_anchor, hydrate_nodes, hydrating, set_hydrating } from '../hydration.js';
|
|
|
|
import { empty } from '../operations.js';
|
|
|
|
import { clear_text_content, empty } from '../operations.js';
|
|
|
|
import { remove } from '../reconciler.js';
|
|
|
|
import { remove } from '../reconciler.js';
|
|
|
|
import { untrack } from '../../runtime.js';
|
|
|
|
import { untrack } from '../../runtime.js';
|
|
|
|
import {
|
|
|
|
import {
|
|
|
@ -67,7 +67,7 @@ function pause_effects(items, controlled_anchor, callback) {
|
|
|
|
// DOM element, so we can apply a fast-path for clearing the contents of the element.
|
|
|
|
// DOM element, so we can apply a fast-path for clearing the contents of the element.
|
|
|
|
if (length > 0 && transitions.length === 0 && controlled_anchor !== null) {
|
|
|
|
if (length > 0 && transitions.length === 0 && controlled_anchor !== null) {
|
|
|
|
var parent_node = /** @type {Element} */ (controlled_anchor.parentNode);
|
|
|
|
var parent_node = /** @type {Element} */ (controlled_anchor.parentNode);
|
|
|
|
parent_node.textContent = '';
|
|
|
|
clear_text_content(parent_node);
|
|
|
|
parent_node.append(controlled_anchor);
|
|
|
|
parent_node.append(controlled_anchor);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|