From a7e6dbc751836e0ebc40f29ad11ca6b51346b5fc Mon Sep 17 00:00:00 2001 From: Ivan Hofer Date: Fri, 20 Nov 2020 20:33:02 +0100 Subject: [PATCH] revert unnecessary destructuring --- src/runtime/internal/Component.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/runtime/internal/Component.ts b/src/runtime/internal/Component.ts index 4c4958ce93..ac2dc3651d 100644 --- a/src/runtime/internal/Component.ts +++ b/src/runtime/internal/Component.ts @@ -53,13 +53,13 @@ export function claim_component(block, parent_nodes) { } export function mount_component({ $$ }, target, anchor) { - const { fragment, on_mount, on_destroy, after_update } = $$; + const { fragment, on_destroy } = $$; fragment && fragment.m(target, anchor); // onMount happens before the initial afterUpdate add_render_callback(() => { - const new_on_destroy = on_mount.map(run).filter(is_function); + const new_on_destroy = $$.on_mount.map(run).filter(is_function); if (on_destroy) { on_destroy.push(...new_on_destroy); } else { @@ -70,7 +70,7 @@ export function mount_component({ $$ }, target, anchor) { $$.on_mount = []; }); - after_update.forEach(add_render_callback); + $$.after_update.forEach(add_render_callback); } export function destroy_component({ $$ }, detaching) {