|
|
@ -438,18 +438,17 @@ export function remove_reactions(signal, start_index) {
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @param {import('#client').Reaction} signal
|
|
|
|
* @param {import('#client').Reaction} signal
|
|
|
|
* @param {boolean} [remove_dom]
|
|
|
|
* @param {boolean} remove_dom
|
|
|
|
* @returns {void}
|
|
|
|
* @returns {void}
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
export function destroy_effect_children(signal, remove_dom = true) {
|
|
|
|
export function destroy_effect_children(signal, remove_dom = false) {
|
|
|
|
let effect = signal.first;
|
|
|
|
var effect = signal.first;
|
|
|
|
signal.first = null;
|
|
|
|
signal.first = signal.last = null;
|
|
|
|
signal.last = null;
|
|
|
|
|
|
|
|
var sibling;
|
|
|
|
|
|
|
|
while (effect !== null) {
|
|
|
|
while (effect !== null) {
|
|
|
|
sibling = effect.next;
|
|
|
|
var next = effect.next;
|
|
|
|
destroy_effect(effect, remove_dom);
|
|
|
|
destroy_effect(effect, remove_dom);
|
|
|
|
effect = sibling;
|
|
|
|
effect = next;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|