|
|
@ -100,8 +100,6 @@ export function init(component, options, instance, create_fragment, not_equal, p
|
|
|
|
const parent_component = current_component;
|
|
|
|
const parent_component = current_component;
|
|
|
|
set_current_component(component);
|
|
|
|
set_current_component(component);
|
|
|
|
|
|
|
|
|
|
|
|
const prop_values = options.props || {};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const $$: T$$ = component.$$ = {
|
|
|
|
const $$: T$$ = component.$$ = {
|
|
|
|
fragment: null,
|
|
|
|
fragment: null,
|
|
|
|
ctx: null,
|
|
|
|
ctx: null,
|
|
|
@ -128,7 +126,7 @@ export function init(component, options, instance, create_fragment, not_equal, p
|
|
|
|
let ready = false;
|
|
|
|
let ready = false;
|
|
|
|
|
|
|
|
|
|
|
|
$$.ctx = instance
|
|
|
|
$$.ctx = instance
|
|
|
|
? instance(component, prop_values, (i, ret, ...rest) => {
|
|
|
|
? instance(component, options.props || {}, (i, ret, ...rest) => {
|
|
|
|
const value = rest.length ? rest[0] : ret;
|
|
|
|
const value = rest.length ? rest[0] : ret;
|
|
|
|
if ($$.ctx && not_equal($$.ctx[i], $$.ctx[i] = value)) {
|
|
|
|
if ($$.ctx && not_equal($$.ctx[i], $$.ctx[i] = value)) {
|
|
|
|
if (!$$.skip_bound && $$.bound[i]) $$.bound[i](value);
|
|
|
|
if (!$$.skip_bound && $$.bound[i]) $$.bound[i](value);
|
|
|
|