put callbacks with the other discardable items

pull/7738/head
Richard Harris 7 years ago
parent ab20acd479
commit 1e55b97bed

@ -72,13 +72,13 @@ export function create_ssr_component(fn) {
const parent_component = current_component; const parent_component = current_component;
const $$ = { const $$ = {
on_destroy,
context: new Map(parent_component ? parent_component.$$.context : []),
// these will be immediately discarded // these will be immediately discarded
on_mount: [], on_mount: [],
before_render: [], before_render: [],
after_render: [], after_render: [],
on_destroy,
context: new Map(parent_component ? parent_component.$$.context : []),
callbacks: blankObject() callbacks: blankObject()
}; };

Loading…
Cancel
Save