|
|
@ -10,12 +10,10 @@ export function bind(component, name, callback) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
export function mount_component(component, target, anchor) {
|
|
|
|
export function mount_component(component, target, anchor) {
|
|
|
|
const { fragment, refs, inject_refs, on_mount, on_destroy, after_render } = component.$$;
|
|
|
|
const { fragment, on_mount, on_destroy, after_render } = component.$$;
|
|
|
|
|
|
|
|
|
|
|
|
fragment[fragment.i ? 'i' : 'm'](target, anchor);
|
|
|
|
fragment[fragment.i ? 'i' : 'm'](target, anchor);
|
|
|
|
|
|
|
|
|
|
|
|
inject_refs(refs);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// onMount happens after the initial afterUpdate. Because
|
|
|
|
// onMount happens after the initial afterUpdate. Because
|
|
|
|
// afterUpdate callbacks happen in reverse order (inner first)
|
|
|
|
// afterUpdate callbacks happen in reverse order (inner first)
|
|
|
|
// we schedule onMount callbacks before afterUpdate callbacks
|
|
|
|
// we schedule onMount callbacks before afterUpdate callbacks
|
|
|
@ -69,7 +67,6 @@ export function init(component, options, define, create_fragment, not_equal) {
|
|
|
|
get: empty,
|
|
|
|
get: empty,
|
|
|
|
set: noop,
|
|
|
|
set: noop,
|
|
|
|
update: noop,
|
|
|
|
update: noop,
|
|
|
|
inject_refs: noop,
|
|
|
|
|
|
|
|
not_equal,
|
|
|
|
not_equal,
|
|
|
|
bound: blankObject(),
|
|
|
|
bound: blankObject(),
|
|
|
|
|
|
|
|
|
|
|
@ -82,7 +79,6 @@ export function init(component, options, define, create_fragment, not_equal) {
|
|
|
|
// everything else
|
|
|
|
// everything else
|
|
|
|
callbacks: blankObject(),
|
|
|
|
callbacks: blankObject(),
|
|
|
|
slotted: options.slots || {},
|
|
|
|
slotted: options.slots || {},
|
|
|
|
refs: {},
|
|
|
|
|
|
|
|
dirty: null,
|
|
|
|
dirty: null,
|
|
|
|
binding_groups: []
|
|
|
|
binding_groups: []
|
|
|
|
};
|
|
|
|
};
|
|
|
|