put callbacks with the other discardable items

pull/2249/head
Richard Harris 6 years ago
parent 138e5b6709
commit 326db41aff

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