types + changeset

pull/14753/head
Dominic Gannaway 1 year ago
parent 085301728b
commit d2d1b201b5

@ -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);

Loading…
Cancel
Save