|
|
|
@ -21,10 +21,10 @@ function create_fragment(ctx) {
|
|
|
|
|
},
|
|
|
|
|
m(target, anchor) {
|
|
|
|
|
insert(target, button, anchor);
|
|
|
|
|
foo_action = foo.call(null, button, ctx.foo_function) || ({});
|
|
|
|
|
foo_action = foo.call(null, button, ctx[1]) || ({});
|
|
|
|
|
},
|
|
|
|
|
p(changed, ctx) {
|
|
|
|
|
if (is_function(foo_action.update) && changed.bar) foo_action.update.call(null, ctx.foo_function);
|
|
|
|
|
p(ctx) {
|
|
|
|
|
if (is_function(foo_action.update)) foo_action.update.call(null, ctx[1]);
|
|
|
|
|
},
|
|
|
|
|
i: noop,
|
|
|
|
|
o: noop,
|
|
|
|
@ -40,7 +40,7 @@ function handleFoo(bar) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function foo(node, callback) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function instance($$self, $$props, $$invalidate) {
|
|
|
|
@ -48,10 +48,10 @@ function instance($$self, $$props, $$invalidate) {
|
|
|
|
|
const foo_function = () => handleFoo(bar);
|
|
|
|
|
|
|
|
|
|
$$self.$set = $$props => {
|
|
|
|
|
if ("bar" in $$props) $$invalidate("bar", bar = $$props.bar);
|
|
|
|
|
if ("bar" in $$props) $$invalidate(0, bar = $$props.bar);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
return { bar, foo_function };
|
|
|
|
|
return [bar, foo_function];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class Component extends SvelteComponent {
|
|
|
|
|