|
|
|
@ -381,11 +381,7 @@ export function execute_effect_teardown(effect) {
|
|
|
|
set_is_destroying_effect(true);
|
|
|
|
set_is_destroying_effect(true);
|
|
|
|
set_active_reaction(null);
|
|
|
|
set_active_reaction(null);
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
if (typeof teardown === 'function') {
|
|
|
|
teardown.call(null);
|
|
|
|
teardown.call(null);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
teardown.abort('effect destroyed');
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
} finally {
|
|
|
|
} finally {
|
|
|
|
set_is_destroying_effect(previously_destroying_effect);
|
|
|
|
set_is_destroying_effect(previously_destroying_effect);
|
|
|
|
set_active_reaction(previous_reaction);
|
|
|
|
set_active_reaction(previous_reaction);
|
|
|
|
|