update tests

pull/1899/head
Rich Harris 7 years ago
parent 1c4e60f38e
commit fda9147cca

@ -43,32 +43,32 @@ function foo(node, callback) {
// code goes here // code goes here
} }
function define($$self, $$props) { function instance($$self, $$props) {
let { bar } = $$props; let { bar } = $$props;
function foo_function() { function foo_function() {
return handleFoo(bar); return handleFoo(bar);
} }
$$self.$$.get = () => ({ bar, foo_function });
$$self.$$.set = $$props => { $$self.$$.set = $$props => {
if ('bar' in $$props) bar = $$props.bar; if ('bar' in $$props) bar = $$props.bar;
}; };
return { bar, foo_function };
} }
class SvelteComponent extends SvelteComponent_1 { class SvelteComponent extends SvelteComponent_1 {
constructor(options) { constructor(options) {
super(); super();
init(this, options, define, create_fragment, safe_not_equal); init(this, options, instance, create_fragment, safe_not_equal);
} }
get bar() { get bar() {
return this.$$.get().bar; return this.$$.ctx.bar;
} }
set bar(value) { set bar(bar) {
this.$set({ bar: value }); this.$set({ bar });
flush(); flush();
} }
} }

@ -54,7 +54,7 @@ function link(node) {
class SvelteComponent extends SvelteComponent_1 { class SvelteComponent extends SvelteComponent_1 {
constructor(options) { constructor(options) {
super(); super();
init(this, options, noop, create_fragment, safe_not_equal); init(this, options, props => props, create_fragment, safe_not_equal);
} }
} }

@ -36,45 +36,45 @@ function create_fragment(component, ctx) {
}; };
} }
function define($$self, $$props, $$make_dirty) { function instance($$self, $$props, $$invalidate) {
let { w, h } = $$props; let { w, h } = $$props;
function div_resize_handler() { function div_resize_handler() {
w = this.offsetWidth; w = this.offsetWidth;
h = this.offsetHeight; h = this.offsetHeight;
$$make_dirty('w'); $$invalidate('w', w);
$$make_dirty('h'); $$invalidate('h', h);
} }
$$self.$$.get = () => ({ w, h, div_resize_handler });
$$self.$$.set = $$props => { $$self.$$.set = $$props => {
if ('w' in $$props) w = $$props.w; if ('w' in $$props) w = $$props.w;
if ('h' in $$props) h = $$props.h; if ('h' in $$props) h = $$props.h;
}; };
return { w, h, div_resize_handler };
} }
class SvelteComponent extends SvelteComponent_1 { class SvelteComponent extends SvelteComponent_1 {
constructor(options) { constructor(options) {
super(); super();
init(this, options, define, create_fragment, safe_not_equal); init(this, options, instance, create_fragment, safe_not_equal);
} }
get w() { get w() {
return this.$$.get().w; return this.$$.ctx.w;
} }
set w(value) { set w(w) {
this.$set({ w: value }); this.$set({ w });
flush(); flush();
} }
get h() { get h() {
return this.$$.get().h; return this.$$.ctx.h;
} }
set h(value) { set h(h) {
this.$set({ h: value }); this.$set({ h });
flush(); flush();
} }
} }

@ -45,29 +45,29 @@ function create_fragment(component, ctx) {
}; };
} }
function define($$self, $$props) { function instance($$self, $$props) {
let { foo = 42 } = $$props; let { foo = 42 } = $$props;
$$self.$$.get = () => ({ foo });
$$self.$$.set = $$props => { $$self.$$.set = $$props => {
if ('foo' in $$props) foo = $$props.foo; if ('foo' in $$props) foo = $$props.foo;
}; };
return { foo };
} }
class SvelteComponent extends SvelteComponent_1 { class SvelteComponent extends SvelteComponent_1 {
constructor(options) { constructor(options) {
super(); super();
if (!document.getElementById("svelte-1a7i8ec-style")) add_css(); if (!document.getElementById("svelte-1a7i8ec-style")) add_css();
init(this, options, define, create_fragment, safe_not_equal); init(this, options, instance, create_fragment, safe_not_equal);
} }
get foo() { get foo() {
return this.$$.get().foo; return this.$$.ctx.foo;
} }
set foo(value) { set foo(foo) {
this.$set({ foo: value }); this.$set({ foo });
flush(); flush();
} }
} }

@ -36,16 +36,16 @@ function create_fragment(component, ctx) {
}; };
} }
function define($$self) { function instance($$self) {
const Nested = window.Nested; const Nested = window.Nested;
$$self.$$.get = () => ({ Nested }); return { Nested };
} }
class SvelteComponent extends SvelteComponent_1 { class SvelteComponent extends SvelteComponent_1 {
constructor(options) { constructor(options) {
super(); super();
init(this, options, define, create_fragment, safe_not_equal); init(this, options, instance, create_fragment, safe_not_equal);
} }
} }

@ -36,16 +36,16 @@ function create_fragment(component, ctx) {
}; };
} }
function define($$self) { function instance($$self) {
const Nested = window.Nested; const Nested = window.Nested;
$$self.$$.get = () => ({ Nested }); return { Nested };
} }
class SvelteComponent extends SvelteComponent_1 { class SvelteComponent extends SvelteComponent_1 {
constructor(options) { constructor(options) {
super(); super();
init(this, options, define, create_fragment, not_equal); init(this, options, instance, create_fragment, not_equal);
} }
} }

@ -36,16 +36,16 @@ function create_fragment(component, ctx) {
}; };
} }
function define($$self) { function instance($$self) {
const Nested = window.Nested; const Nested = window.Nested;
$$self.$$.get = () => ({ Nested }); return { Nested };
} }
class SvelteComponent extends SvelteComponent_1 { class SvelteComponent extends SvelteComponent_1 {
constructor(options) { constructor(options) {
super(); super();
init(this, options, define, create_fragment, not_equal); init(this, options, instance, create_fragment, not_equal);
} }
} }

@ -36,16 +36,16 @@ function create_fragment(component, ctx) {
}; };
} }
function define($$self) { function instance($$self) {
const Nested = window.Nested; const Nested = window.Nested;
$$self.$$.get = () => ({ Nested }); return { Nested };
} }
class SvelteComponent extends SvelteComponent_1 { class SvelteComponent extends SvelteComponent_1 {
constructor(options) { constructor(options) {
super(); super();
init(this, options, define, create_fragment, safe_not_equal); init(this, options, instance, create_fragment, safe_not_equal);
} }
} }

@ -14,7 +14,7 @@ function create_fragment(component, ctx) {
}; };
} }
function define($$self, $$props) { function instance($$self, $$props) {
let { x } = $$props; let { x } = $$props;
function a() { function a() {
@ -25,34 +25,34 @@ function define($$self, $$props) {
return x * 3; return x * 3;
} }
$$self.$$.get = () => ({ x, a, b });
$$self.$$.set = $$props => { $$self.$$.set = $$props => {
if ('x' in $$props) x = $$props.x; if ('x' in $$props) x = $$props.x;
}; };
return { x, a, b };
} }
class SvelteComponent extends SvelteComponent_1 { class SvelteComponent extends SvelteComponent_1 {
constructor(options) { constructor(options) {
super(); super();
init(this, options, define, create_fragment, safe_not_equal); init(this, options, instance, create_fragment, safe_not_equal);
} }
get x() { get x() {
return this.$$.get().x; return this.$$.ctx.x;
} }
set x(value) { set x(x) {
this.$set({ x: value }); this.$set({ x });
flush(); flush();
} }
get a() { get a() {
return this.$$.get().a; return this.$$.ctx.a;
} }
get b() { get b() {
return this.$$.get().b; return this.$$.ctx.b;
} }
} }

@ -43,7 +43,7 @@ class SvelteComponent extends SvelteComponent_1 {
constructor(options) { constructor(options) {
super(); super();
if (!document.getElementById("svelte-1slhpfn-style")) add_css(); if (!document.getElementById("svelte-1slhpfn-style")) add_css();
init(this, options, noop, create_fragment, safe_not_equal); init(this, options, props => props, create_fragment, safe_not_equal);
} }
} }

@ -39,7 +39,7 @@ class SvelteComponent extends SvelteElement {
this.shadowRoot.innerHTML = `<style>div{animation:foo 1s}@keyframes foo{0%{opacity:0}100%{opacity:1}}</style>`; this.shadowRoot.innerHTML = `<style>div{animation:foo 1s}@keyframes foo{0%{opacity:0}100%{opacity:1}}</style>`;
init(this, { target: this.shadowRoot }, noop, create_fragment, safe_not_equal); init(this, { target: this.shadowRoot }, props => props, create_fragment, safe_not_equal);
if (options) { if (options) {
if (options.target) { if (options.target) {

@ -54,33 +54,33 @@ function create_fragment(component, ctx) {
}; };
} }
function define($$self, $$props) { function instance($$self, $$props) {
let { name } = $$props; let { name } = $$props;
$$self.$$.get = () => ({ name });
$$self.$$.set = $$props => { $$self.$$.set = $$props => {
if ('name' in $$props) name = $$props.name; if ('name' in $$props) name = $$props.name;
}; };
return { name };
} }
class SvelteComponent extends SvelteComponentDev { class SvelteComponent extends SvelteComponentDev {
constructor(options) { constructor(options) {
super(options); super(options);
init(this, options, define, create_fragment, safe_not_equal); init(this, options, instance, create_fragment, safe_not_equal);
const state = this.$$.get(); const { ctx } = this.$$;
if (state.name === undefined) { if (ctx.name === undefined) {
console.warn("<SvelteComponent> was created without expected data property 'name'"); console.warn("<SvelteComponent> was created without expected data property 'name'");
} }
} }
get name() { get name() {
return this.$$.get().name; return this.$$.ctx.name;
} }
set name(value) { set name(name) {
this.$set({ name: value }); this.$set({ name });
flush(); flush();
} }
} }

@ -139,72 +139,72 @@ function create_fragment(component, ctx) {
}; };
} }
function define($$self, $$props) { function instance($$self, $$props) {
let { things, foo, bar, baz } = $$props; let { things, foo, bar, baz } = $$props;
$$self.$$.get = () => ({ things, foo, bar, baz });
$$self.$$.set = $$props => { $$self.$$.set = $$props => {
if ('things' in $$props) things = $$props.things; if ('things' in $$props) things = $$props.things;
if ('foo' in $$props) foo = $$props.foo; if ('foo' in $$props) foo = $$props.foo;
if ('bar' in $$props) bar = $$props.bar; if ('bar' in $$props) bar = $$props.bar;
if ('baz' in $$props) baz = $$props.baz; if ('baz' in $$props) baz = $$props.baz;
}; };
return { things, foo, bar, baz };
} }
class SvelteComponent extends SvelteComponentDev { class SvelteComponent extends SvelteComponentDev {
constructor(options) { constructor(options) {
super(options); super(options);
init(this, options, define, create_fragment, safe_not_equal); init(this, options, instance, create_fragment, safe_not_equal);
const state = this.$$.get(); const { ctx } = this.$$;
if (state.things === undefined) { if (ctx.things === undefined) {
console.warn("<SvelteComponent> was created without expected data property 'things'"); console.warn("<SvelteComponent> was created without expected data property 'things'");
} }
if (state.foo === undefined) { if (ctx.foo === undefined) {
console.warn("<SvelteComponent> was created without expected data property 'foo'"); console.warn("<SvelteComponent> was created without expected data property 'foo'");
} }
if (state.bar === undefined) { if (ctx.bar === undefined) {
console.warn("<SvelteComponent> was created without expected data property 'bar'"); console.warn("<SvelteComponent> was created without expected data property 'bar'");
} }
if (state.baz === undefined) { if (ctx.baz === undefined) {
console.warn("<SvelteComponent> was created without expected data property 'baz'"); console.warn("<SvelteComponent> was created without expected data property 'baz'");
} }
} }
get things() { get things() {
return this.$$.get().things; return this.$$.ctx.things;
} }
set things(value) { set things(things) {
this.$set({ things: value }); this.$set({ things });
flush(); flush();
} }
get foo() { get foo() {
return this.$$.get().foo; return this.$$.ctx.foo;
} }
set foo(value) { set foo(foo) {
this.$set({ foo: value }); this.$set({ foo });
flush(); flush();
} }
get bar() { get bar() {
return this.$$.get().bar; return this.$$.ctx.bar;
} }
set bar(value) { set bar(bar) {
this.$set({ bar: value }); this.$set({ bar });
flush(); flush();
} }
get baz() { get baz() {
return this.$$.get().baz; return this.$$.ctx.baz;
} }
set baz(value) { set baz(baz) {
this.$set({ baz: value }); this.$set({ baz });
flush(); flush();
} }
} }

@ -139,46 +139,46 @@ function create_fragment(component, ctx) {
}; };
} }
function define($$self, $$props) { function instance($$self, $$props) {
let { things, foo } = $$props; let { things, foo } = $$props;
$$self.$$.get = () => ({ things, foo });
$$self.$$.set = $$props => { $$self.$$.set = $$props => {
if ('things' in $$props) things = $$props.things; if ('things' in $$props) things = $$props.things;
if ('foo' in $$props) foo = $$props.foo; if ('foo' in $$props) foo = $$props.foo;
}; };
return { things, foo };
} }
class SvelteComponent extends SvelteComponentDev { class SvelteComponent extends SvelteComponentDev {
constructor(options) { constructor(options) {
super(options); super(options);
init(this, options, define, create_fragment, safe_not_equal); init(this, options, instance, create_fragment, safe_not_equal);
const state = this.$$.get(); const { ctx } = this.$$;
if (state.things === undefined) { if (ctx.things === undefined) {
console.warn("<SvelteComponent> was created without expected data property 'things'"); console.warn("<SvelteComponent> was created without expected data property 'things'");
} }
if (state.foo === undefined) { if (ctx.foo === undefined) {
console.warn("<SvelteComponent> was created without expected data property 'foo'"); console.warn("<SvelteComponent> was created without expected data property 'foo'");
} }
} }
get things() { get things() {
return this.$$.get().things; return this.$$.ctx.things;
} }
set things(value) { set things(things) {
this.$set({ things: value }); this.$set({ things });
flush(); flush();
} }
get foo() { get foo() {
return this.$$.get().foo; return this.$$.ctx.foo;
} }
set foo(value) { set foo(foo) {
this.$set({ foo: value }); this.$set({ foo });
flush(); flush();
} }
} }

@ -105,28 +105,28 @@ function create_fragment(component, ctx) {
}; };
} }
function define($$self, $$props) { function instance($$self, $$props) {
let { createElement } = $$props; let { createElement } = $$props;
$$self.$$.get = () => ({ createElement });
$$self.$$.set = $$props => { $$self.$$.set = $$props => {
if ('createElement' in $$props) createElement = $$props.createElement; if ('createElement' in $$props) createElement = $$props.createElement;
}; };
return { createElement };
} }
class SvelteComponent extends SvelteComponent_1 { class SvelteComponent extends SvelteComponent_1 {
constructor(options) { constructor(options) {
super(); super();
init(this, options, define, create_fragment, safe_not_equal); init(this, options, instance, create_fragment, safe_not_equal);
} }
get createElement() { get createElement() {
return this.$$.get().createElement; return this.$$.ctx.createElement;
} }
set createElement(value) { set createElement(createElement) {
this.$set({ createElement: value }); this.$set({ createElement });
flush(); flush();
} }
} }

@ -15,32 +15,32 @@ function create_fragment(component, ctx) {
}; };
} }
function define($$self, $$props) { function instance($$self, $$props) {
let { foo = 'bar' } = $$props; let { foo = 'bar' } = $$props;
onMount(() => { onMount(() => {
alert(JSON.stringify(data())); alert(JSON.stringify(data()));
}); });
$$self.$$.get = () => ({ foo });
$$self.$$.set = $$props => { $$self.$$.set = $$props => {
if ('foo' in $$props) foo = $$props.foo; if ('foo' in $$props) foo = $$props.foo;
}; };
return { foo };
} }
class SvelteComponent extends SvelteComponent_1 { class SvelteComponent extends SvelteComponent_1 {
constructor(options) { constructor(options) {
super(); super();
init(this, options, define, create_fragment, safe_not_equal); init(this, options, instance, create_fragment, safe_not_equal);
} }
get foo() { get foo() {
return this.$$.get().foo; return this.$$.ctx.foo;
} }
set foo(value) { set foo(foo) {
this.$set({ foo: value }); this.$set({ foo });
flush(); flush();
} }
} }

@ -52,41 +52,41 @@ function create_fragment(component, ctx) {
}; };
} }
function define($$self, $$props, $$make_dirty) { function instance($$self, $$props, $$invalidate) {
let { foo } = $$props; let { foo } = $$props;
let bar; let bar;
$$self.$$.get = () => ({ foo, bar });
$$self.$$.set = $$props => { $$self.$$.set = $$props => {
if ('foo' in $$props) foo = $$props.foo; if ('foo' in $$props) foo = $$props.foo;
}; };
$$self.$$.update = ($$dirty = { foo: 1 }) => { $$self.$$.update = ($$dirty = { foo: 1 }) => {
if ($$dirty.foo) { if ($$dirty.foo) {
bar = foo * 2; $$make_dirty('bar'); bar = foo * 2; $$invalidate('bar', bar);
} }
}; };
return { foo, bar };
} }
class SvelteComponent extends SvelteComponentDev { class SvelteComponent extends SvelteComponentDev {
constructor(options) { constructor(options) {
super(options); super(options);
init(this, options, define, create_fragment, safe_not_equal); init(this, options, instance, create_fragment, safe_not_equal);
const state = this.$$.get(); const { ctx } = this.$$;
if (state.foo === undefined) { if (ctx.foo === undefined) {
console.warn("<SvelteComponent> was created without expected data property 'foo'"); console.warn("<SvelteComponent> was created without expected data property 'foo'");
} }
} }
get foo() { get foo() {
return this.$$.get().foo; return this.$$.ctx.foo;
} }
set foo(value) { set foo(foo) {
this.$set({ foo: value }); this.$set({ foo });
flush(); flush();
} }
} }

@ -43,28 +43,28 @@ function create_fragment(component, ctx) {
}; };
} }
function define($$self, $$props) { function instance($$self, $$props) {
let { bar } = $$props; let { bar } = $$props;
$$self.$$.get = () => ({ bar });
$$self.$$.set = $$props => { $$self.$$.set = $$props => {
if ('bar' in $$props) bar = $$props.bar; if ('bar' in $$props) bar = $$props.bar;
}; };
return { bar };
} }
class SvelteComponent extends SvelteComponent_1 { class SvelteComponent extends SvelteComponent_1 {
constructor(options) { constructor(options) {
super(); super();
init(this, options, define, create_fragment, safe_not_equal); init(this, options, instance, create_fragment, safe_not_equal);
} }
get bar() { get bar() {
return this.$$.get().bar; return this.$$.ctx.bar;
} }
set bar(value) { set bar(bar) {
this.$set({ bar: value }); this.$set({ bar });
flush(); flush();
} }
} }

@ -43,28 +43,28 @@ function create_fragment(component, ctx) {
}; };
} }
function define($$self, $$props) { function instance($$self, $$props) {
let { bar } = $$props; let { bar } = $$props;
$$self.$$.get = () => ({ bar });
$$self.$$.set = $$props => { $$self.$$.set = $$props => {
if ('bar' in $$props) bar = $$props.bar; if ('bar' in $$props) bar = $$props.bar;
}; };
return { bar };
} }
class SvelteComponent extends SvelteComponent_1 { class SvelteComponent extends SvelteComponent_1 {
constructor(options) { constructor(options) {
super(); super();
init(this, options, define, create_fragment, safe_not_equal); init(this, options, instance, create_fragment, safe_not_equal);
} }
get bar() { get bar() {
return this.$$.get().bar; return this.$$.ctx.bar;
} }
set bar(value) { set bar(bar) {
this.$set({ bar: value }); this.$set({ bar });
flush(); flush();
} }
} }

@ -41,28 +41,28 @@ function create_fragment(component, ctx) {
}; };
} }
function define($$self, $$props) { function instance($$self, $$props) {
let { bar } = $$props; let { bar } = $$props;
$$self.$$.get = () => ({ bar });
$$self.$$.set = $$props => { $$self.$$.set = $$props => {
if ('bar' in $$props) bar = $$props.bar; if ('bar' in $$props) bar = $$props.bar;
}; };
return { bar };
} }
class SvelteComponent extends SvelteComponent_1 { class SvelteComponent extends SvelteComponent_1 {
constructor(options) { constructor(options) {
super(); super();
init(this, options, define, create_fragment, safe_not_equal); init(this, options, instance, create_fragment, safe_not_equal);
} }
get bar() { get bar() {
return this.$$.get().bar; return this.$$.ctx.bar;
} }
set bar(value) { set bar(bar) {
this.$set({ bar: value }); this.$set({ bar });
flush(); flush();
} }
} }

@ -44,7 +44,7 @@ function func() {
class SvelteComponent extends SvelteComponent_1 { class SvelteComponent extends SvelteComponent_1 {
constructor(options) { constructor(options) {
super(); super();
init(this, options, noop, create_fragment, safe_not_equal); init(this, options, props => props, create_fragment, safe_not_equal);
} }
} }

@ -145,58 +145,58 @@ function create_fragment(component, ctx) {
}; };
} }
function define($$self, $$props) { function instance($$self, $$props) {
let { comments, elapsed, time, foo } = $$props; let { comments, elapsed, time, foo } = $$props;
$$self.$$.get = () => ({ comments, elapsed, time, foo });
$$self.$$.set = $$props => { $$self.$$.set = $$props => {
if ('comments' in $$props) comments = $$props.comments; if ('comments' in $$props) comments = $$props.comments;
if ('elapsed' in $$props) elapsed = $$props.elapsed; if ('elapsed' in $$props) elapsed = $$props.elapsed;
if ('time' in $$props) time = $$props.time; if ('time' in $$props) time = $$props.time;
if ('foo' in $$props) foo = $$props.foo; if ('foo' in $$props) foo = $$props.foo;
}; };
return { comments, elapsed, time, foo };
} }
class SvelteComponent extends SvelteComponent_1 { class SvelteComponent extends SvelteComponent_1 {
constructor(options) { constructor(options) {
super(); super();
init(this, options, define, create_fragment, safe_not_equal); init(this, options, instance, create_fragment, safe_not_equal);
} }
get comments() { get comments() {
return this.$$.get().comments; return this.$$.ctx.comments;
} }
set comments(value) { set comments(comments) {
this.$set({ comments: value }); this.$set({ comments });
flush(); flush();
} }
get elapsed() { get elapsed() {
return this.$$.get().elapsed; return this.$$.ctx.elapsed;
} }
set elapsed(value) { set elapsed(elapsed) {
this.$set({ elapsed: value }); this.$set({ elapsed });
flush(); flush();
} }
get time() { get time() {
return this.$$.get().time; return this.$$.ctx.time;
} }
set time(value) { set time(time) {
this.$set({ time: value }); this.$set({ time });
flush(); flush();
} }
get foo() { get foo() {
return this.$$.get().foo; return this.$$.ctx.foo;
} }
set foo(value) { set foo(foo) {
this.$set({ foo: value }); this.$set({ foo });
flush(); flush();
} }
} }

@ -120,28 +120,28 @@ function foo(node, animation, params) {
}; };
} }
function define($$self, $$props) { function instance($$self, $$props) {
let { things } = $$props; let { things } = $$props;
$$self.$$.get = () => ({ things });
$$self.$$.set = $$props => { $$self.$$.set = $$props => {
if ('things' in $$props) things = $$props.things; if ('things' in $$props) things = $$props.things;
}; };
return { things };
} }
class SvelteComponent extends SvelteComponent_1 { class SvelteComponent extends SvelteComponent_1 {
constructor(options) { constructor(options) {
super(); super();
init(this, options, define, create_fragment, safe_not_equal); init(this, options, instance, create_fragment, safe_not_equal);
} }
get things() { get things() {
return this.$$.get().things; return this.$$.ctx.things;
} }
set things(value) { set things(things) {
this.$set({ things: value }); this.$set({ things });
flush(); flush();
} }
} }

@ -90,28 +90,28 @@ function create_fragment(component, ctx) {
}; };
} }
function define($$self, $$props) { function instance($$self, $$props) {
let { things } = $$props; let { things } = $$props;
$$self.$$.get = () => ({ things });
$$self.$$.set = $$props => { $$self.$$.set = $$props => {
if ('things' in $$props) things = $$props.things; if ('things' in $$props) things = $$props.things;
}; };
return { things };
} }
class SvelteComponent extends SvelteComponent_1 { class SvelteComponent extends SvelteComponent_1 {
constructor(options) { constructor(options) {
super(); super();
init(this, options, define, create_fragment, safe_not_equal); init(this, options, instance, create_fragment, safe_not_equal);
} }
get things() { get things() {
return this.$$.get().things; return this.$$.ctx.things;
} }
set things(value) { set things(things) {
this.$set({ things: value }); this.$set({ things });
flush(); flush();
} }
} }

@ -63,7 +63,7 @@ function handleClick() {
class SvelteComponent extends SvelteComponent_1 { class SvelteComponent extends SvelteComponent_1 {
constructor(options) { constructor(options) {
super(); super();
init(this, options, noop, create_fragment, safe_not_equal); init(this, options, props => props, create_fragment, safe_not_equal);
} }
} }

@ -39,7 +39,7 @@ function create_fragment(component, ctx) {
class SvelteComponent extends SvelteComponent_1 { class SvelteComponent extends SvelteComponent_1 {
constructor(options) { constructor(options) {
super(); super();
init(this, options, noop, create_fragment, safe_not_equal); init(this, options, props => props, create_fragment, safe_not_equal);
} }
} }

@ -40,7 +40,7 @@ function get_answer() { return ANSWER; }
class SvelteComponent extends SvelteComponent_1 { class SvelteComponent extends SvelteComponent_1 {
constructor(options) { constructor(options) {
super(); super();
init(this, options, noop, create_fragment, safe_not_equal); init(this, options, props => props, create_fragment, safe_not_equal);
} }
} }

@ -93,28 +93,28 @@ function create_fragment(component, ctx) {
}; };
} }
function define($$self, $$props) { function instance($$self, $$props) {
let { foo } = $$props; let { foo } = $$props;
$$self.$$.get = () => ({ foo });
$$self.$$.set = $$props => { $$self.$$.set = $$props => {
if ('foo' in $$props) foo = $$props.foo; if ('foo' in $$props) foo = $$props.foo;
}; };
return { foo };
} }
class SvelteComponent extends SvelteComponent_1 { class SvelteComponent extends SvelteComponent_1 {
constructor(options) { constructor(options) {
super(); super();
init(this, options, define, create_fragment, safe_not_equal); init(this, options, instance, create_fragment, safe_not_equal);
} }
get foo() { get foo() {
return this.$$.get().foo; return this.$$.ctx.foo;
} }
set foo(value) { set foo(foo) {
this.$set({ foo: value }); this.$set({ foo });
flush(); flush();
} }
} }

@ -69,28 +69,28 @@ function create_fragment(component, ctx) {
}; };
} }
function define($$self, $$props) { function instance($$self, $$props) {
let { foo } = $$props; let { foo } = $$props;
$$self.$$.get = () => ({ foo });
$$self.$$.set = $$props => { $$self.$$.set = $$props => {
if ('foo' in $$props) foo = $$props.foo; if ('foo' in $$props) foo = $$props.foo;
}; };
return { foo };
} }
class SvelteComponent extends SvelteComponent_1 { class SvelteComponent extends SvelteComponent_1 {
constructor(options) { constructor(options) {
super(); super();
init(this, options, define, create_fragment, safe_not_equal); init(this, options, instance, create_fragment, safe_not_equal);
} }
get foo() { get foo() {
return this.$$.get().foo; return this.$$.ctx.foo;
} }
set foo(value) { set foo(foo) {
this.$set({ foo: value }); this.$set({ foo });
flush(); flush();
} }
} }

@ -41,48 +41,48 @@ function create_fragment(component, ctx) {
}; };
} }
function define($$self, $$props) { function instance($$self, $$props) {
let { color, x, y } = $$props; let { color, x, y } = $$props;
$$self.$$.get = () => ({ color, x, y });
$$self.$$.set = $$props => { $$self.$$.set = $$props => {
if ('color' in $$props) color = $$props.color; if ('color' in $$props) color = $$props.color;
if ('x' in $$props) x = $$props.x; if ('x' in $$props) x = $$props.x;
if ('y' in $$props) y = $$props.y; if ('y' in $$props) y = $$props.y;
}; };
return { color, x, y };
} }
class SvelteComponent extends SvelteComponent_1 { class SvelteComponent extends SvelteComponent_1 {
constructor(options) { constructor(options) {
super(); super();
init(this, options, define, create_fragment, safe_not_equal); init(this, options, instance, create_fragment, safe_not_equal);
} }
get color() { get color() {
return this.$$.get().color; return this.$$.ctx.color;
} }
set color(value) { set color(color) {
this.$set({ color: value }); this.$set({ color });
flush(); flush();
} }
get x() { get x() {
return this.$$.get().x; return this.$$.ctx.x;
} }
set x(value) { set x(x) {
this.$set({ x: value }); this.$set({ x });
flush(); flush();
} }
get y() { get y() {
return this.$$.get().y; return this.$$.ctx.y;
} }
set y(value) { set y(y) {
this.$set({ y: value }); this.$set({ y });
flush(); flush();
} }
} }

@ -36,28 +36,28 @@ function create_fragment(component, ctx) {
}; };
} }
function define($$self, $$props) { function instance($$self, $$props) {
let { data } = $$props; let { data } = $$props;
$$self.$$.get = () => ({ data });
$$self.$$.set = $$props => { $$self.$$.set = $$props => {
if ('data' in $$props) data = $$props.data; if ('data' in $$props) data = $$props.data;
}; };
return { data };
} }
class SvelteComponent extends SvelteComponent_1 { class SvelteComponent extends SvelteComponent_1 {
constructor(options) { constructor(options) {
super(); super();
init(this, options, define, create_fragment, safe_not_equal); init(this, options, instance, create_fragment, safe_not_equal);
} }
get data() { get data() {
return this.$$.get().data; return this.$$.ctx.data;
} }
set data(value) { set data(data) {
this.$set({ data: value }); this.$set({ data });
flush(); flush();
} }
} }

@ -36,28 +36,28 @@ function create_fragment(component, ctx) {
}; };
} }
function define($$self, $$props) { function instance($$self, $$props) {
let { color } = $$props; let { color } = $$props;
$$self.$$.get = () => ({ color });
$$self.$$.set = $$props => { $$self.$$.set = $$props => {
if ('color' in $$props) color = $$props.color; if ('color' in $$props) color = $$props.color;
}; };
return { color };
} }
class SvelteComponent extends SvelteComponent_1 { class SvelteComponent extends SvelteComponent_1 {
constructor(options) { constructor(options) {
super(); super();
init(this, options, define, create_fragment, safe_not_equal); init(this, options, instance, create_fragment, safe_not_equal);
} }
get color() { get color() {
return this.$$.get().color; return this.$$.ctx.color;
} }
set color(value) { set color(color) {
this.$set({ color: value }); this.$set({ color });
flush(); flush();
} }
} }

@ -47,48 +47,48 @@ function create_fragment(component, ctx) {
}; };
} }
function define($$self, $$props) { function instance($$self, $$props) {
let { style, key, value } = $$props; let { style, key, value } = $$props;
$$self.$$.get = () => ({ style, key, value });
$$self.$$.set = $$props => { $$self.$$.set = $$props => {
if ('style' in $$props) style = $$props.style; if ('style' in $$props) style = $$props.style;
if ('key' in $$props) key = $$props.key; if ('key' in $$props) key = $$props.key;
if ('value' in $$props) value = $$props.value; if ('value' in $$props) value = $$props.value;
}; };
return { style, key, value };
} }
class SvelteComponent extends SvelteComponent_1 { class SvelteComponent extends SvelteComponent_1 {
constructor(options) { constructor(options) {
super(); super();
init(this, options, define, create_fragment, safe_not_equal); init(this, options, instance, create_fragment, safe_not_equal);
} }
get style() { get style() {
return this.$$.get().style; return this.$$.ctx.style;
} }
set style(value) { set style(style) {
this.$set({ style: value }); this.$set({ style });
flush(); flush();
} }
get key() { get key() {
return this.$$.get().key; return this.$$.ctx.key;
} }
set key(value) { set key(key) {
this.$set({ key: value }); this.$set({ key });
flush(); flush();
} }
get value() { get value() {
return this.$$.get().value; return this.$$.ctx.value;
} }
set value(value) { set value(value) {
this.$set({ value: value }); this.$set({ value });
flush(); flush();
} }
} }

@ -41,33 +41,33 @@ function create_fragment(component, ctx) {
}; };
} }
function define($$self, $$props, $$make_dirty) { function instance($$self, $$props, $$invalidate) {
let { files } = $$props; let { files } = $$props;
function input_input_handler() { function input_input_handler() {
files = this.files; files = this.files;
$$make_dirty('files'); $$invalidate('files', files);
} }
$$self.$$.get = () => ({ files, input_input_handler });
$$self.$$.set = $$props => { $$self.$$.set = $$props => {
if ('files' in $$props) files = $$props.files; if ('files' in $$props) files = $$props.files;
}; };
return { files, input_input_handler };
} }
class SvelteComponent extends SvelteComponent_1 { class SvelteComponent extends SvelteComponent_1 {
constructor(options) { constructor(options) {
super(); super();
init(this, options, define, create_fragment, safe_not_equal); init(this, options, instance, create_fragment, safe_not_equal);
} }
get files() { get files() {
return this.$$.get().files; return this.$$.ctx.files;
} }
set files(value) { set files(files) {
this.$set({ files: value }); this.$set({ files });
flush(); flush();
} }
} }

@ -44,33 +44,33 @@ function create_fragment(component, ctx) {
}; };
} }
function define($$self, $$props, $$make_dirty) { function instance($$self, $$props, $$invalidate) {
let { value } = $$props; let { value } = $$props;
function input_change_input_handler() { function input_change_input_handler() {
value = toNumber(this.value); value = toNumber(this.value);
$$make_dirty('value'); $$invalidate('value', value);
} }
$$self.$$.get = () => ({ value, input_change_input_handler });
$$self.$$.set = $$props => { $$self.$$.set = $$props => {
if ('value' in $$props) value = $$props.value; if ('value' in $$props) value = $$props.value;
}; };
return { value, input_change_input_handler };
} }
class SvelteComponent extends SvelteComponent_1 { class SvelteComponent extends SvelteComponent_1 {
constructor(options) { constructor(options) {
super(); super();
init(this, options, define, create_fragment, safe_not_equal); init(this, options, instance, create_fragment, safe_not_equal);
} }
get value() { get value() {
return this.$$.get().value; return this.$$.ctx.value;
} }
set value(value) { set value(value) {
this.$set({ value: value }); this.$set({ value });
flush(); flush();
} }
} }

@ -40,33 +40,33 @@ function create_fragment(component, ctx) {
}; };
} }
function define($$self, $$props, $$make_dirty) { function instance($$self, $$props, $$invalidate) {
let { foo } = $$props; let { foo } = $$props;
function input_change_handler() { function input_change_handler() {
foo = this.checked; foo = this.checked;
$$make_dirty('foo'); $$invalidate('foo', foo);
} }
$$self.$$.get = () => ({ foo, input_change_handler });
$$self.$$.set = $$props => { $$self.$$.set = $$props => {
if ('foo' in $$props) foo = $$props.foo; if ('foo' in $$props) foo = $$props.foo;
}; };
return { foo, input_change_handler };
} }
class SvelteComponent extends SvelteComponent_1 { class SvelteComponent extends SvelteComponent_1 {
constructor(options) { constructor(options) {
super(); super();
init(this, options, define, create_fragment, safe_not_equal); init(this, options, instance, create_fragment, safe_not_equal);
} }
get foo() { get foo() {
return this.$$.get().foo; return this.$$.ctx.foo;
} }
set foo(value) { set foo(foo) {
this.$set({ foo: value }); this.$set({ foo });
flush(); flush();
} }
} }

@ -49,20 +49,20 @@ function create_fragment(component, ctx) {
}; };
} }
function define($$self, $$props, $$make_dirty) { function instance($$self, $$props, $$invalidate) {
let x = 0; let x = 0;
function foo() { function foo() {
if (true) { x += 1; $$make_dirty('x'); } if (true) { x += 1; $$invalidate('x', x); }
} }
$$self.$$.get = () => ({ x, foo }); return { x, foo };
} }
class SvelteComponent extends SvelteComponent_1 { class SvelteComponent extends SvelteComponent_1 {
constructor(options) { constructor(options) {
super(); super();
init(this, options, define, create_fragment, safe_not_equal); init(this, options, instance, create_fragment, safe_not_equal);
} }
} }

@ -49,21 +49,21 @@ function create_fragment(component, ctx) {
}; };
} }
function define($$self, $$props, $$make_dirty) { function instance($$self, $$props, $$invalidate) {
let things = []; let things = [];
function foo() { function foo() {
things.push(1); things.push(1);
$$make_dirty('things'); $$invalidate('things', things);
} }
$$self.$$.get = () => ({ things, foo }); return { things, foo };
} }
class SvelteComponent extends SvelteComponent_1 { class SvelteComponent extends SvelteComponent_1 {
constructor(options) { constructor(options) {
super(); super();
init(this, options, define, create_fragment, safe_not_equal); init(this, options, instance, create_fragment, safe_not_equal);
} }
} }

@ -49,20 +49,20 @@ function create_fragment(component, ctx) {
}; };
} }
function define($$self, $$props, $$make_dirty) { function instance($$self, $$props, $$invalidate) {
let x = 0; let x = 0;
function click_handler() { function click_handler() {
if (true) { x += 1; $$make_dirty('x'); } if (true) { x += 1; $$invalidate('x', x); }
} }
$$self.$$.get = () => ({ x, click_handler }); return { x, click_handler };
} }
class SvelteComponent extends SvelteComponent_1 { class SvelteComponent extends SvelteComponent_1 {
constructor(options) { constructor(options) {
super(); super();
init(this, options, define, create_fragment, safe_not_equal); init(this, options, instance, create_fragment, safe_not_equal);
} }
} }

@ -49,18 +49,18 @@ function create_fragment(component, ctx) {
}; };
} }
function define($$self, $$props, $$make_dirty) { function instance($$self, $$props, $$invalidate) {
let things = []; let things = [];
function click_handler() { things.push(1); $$make_dirty('things') } function click_handler() { things.push(1); $$invalidate('things', things) }
$$self.$$.get = () => ({ things, click_handler }); return { things, click_handler };
} }
class SvelteComponent extends SvelteComponent_1 { class SvelteComponent extends SvelteComponent_1 {
constructor(options) { constructor(options) {
super(); super();
init(this, options, define, create_fragment, safe_not_equal); init(this, options, instance, create_fragment, safe_not_equal);
} }
} }

@ -35,7 +35,7 @@ function create_fragment(component, ctx) {
class SvelteComponent extends SvelteComponent_1 { class SvelteComponent extends SvelteComponent_1 {
constructor(options) { constructor(options) {
super(); super();
init(this, options, noop, create_fragment, safe_not_equal); init(this, options, props => props, create_fragment, safe_not_equal);
} }
} }

@ -54,7 +54,7 @@ function create_fragment(component, ctx) {
}; };
} }
function define($$self, $$props, $$make_dirty) { function instance($$self, $$props, $$invalidate) {
let { buffered, seekable, played, currentTime, duration, paused, volume } = $$props; let { buffered, seekable, played, currentTime, duration, paused, volume } = $$props;
function audio_timeupdate_handler() { function audio_timeupdate_handler() {
@ -62,38 +62,48 @@ function define($$self, $$props, $$make_dirty) {
if (!audio.paused) audio_animationframe = requestAnimationFrame(audio_timeupdate_handler); if (!audio.paused) audio_animationframe = requestAnimationFrame(audio_timeupdate_handler);
played = timeRangesToArray(this.played); played = timeRangesToArray(this.played);
currentTime = this.currentTime; currentTime = this.currentTime;
$$make_dirty('played'); $$invalidate('played', played);
$$make_dirty('currentTime'); $$invalidate('currentTime', currentTime);
} }
function audio_durationchange_handler() { function audio_durationchange_handler() {
duration = this.duration; duration = this.duration;
$$make_dirty('duration'); $$invalidate('duration', duration);
} }
function audio_play_pause_handler() { function audio_play_pause_handler() {
paused = this.paused; paused = this.paused;
$$make_dirty('paused'); $$invalidate('paused', paused);
} }
function audio_progress_handler() { function audio_progress_handler() {
buffered = timeRangesToArray(this.buffered); buffered = timeRangesToArray(this.buffered);
$$make_dirty('buffered'); $$invalidate('buffered', buffered);
} }
function audio_loadedmetadata_handler() { function audio_loadedmetadata_handler() {
buffered = timeRangesToArray(this.buffered); buffered = timeRangesToArray(this.buffered);
seekable = timeRangesToArray(this.seekable); seekable = timeRangesToArray(this.seekable);
$$make_dirty('buffered'); $$invalidate('buffered', buffered);
$$make_dirty('seekable'); $$invalidate('seekable', seekable);
} }
function audio_volumechange_handler() { function audio_volumechange_handler() {
volume = this.volume; volume = this.volume;
$$make_dirty('volume'); $$invalidate('volume', volume);
} }
$$self.$$.get = () => ({ $$self.$$.set = $$props => {
if ('buffered' in $$props) buffered = $$props.buffered;
if ('seekable' in $$props) seekable = $$props.seekable;
if ('played' in $$props) played = $$props.played;
if ('currentTime' in $$props) currentTime = $$props.currentTime;
if ('duration' in $$props) duration = $$props.duration;
if ('paused' in $$props) paused = $$props.paused;
if ('volume' in $$props) volume = $$props.volume;
};
return {
buffered, buffered,
seekable, seekable,
played, played,
@ -107,85 +117,75 @@ function define($$self, $$props, $$make_dirty) {
audio_progress_handler, audio_progress_handler,
audio_loadedmetadata_handler, audio_loadedmetadata_handler,
audio_volumechange_handler audio_volumechange_handler
});
$$self.$$.set = $$props => {
if ('buffered' in $$props) buffered = $$props.buffered;
if ('seekable' in $$props) seekable = $$props.seekable;
if ('played' in $$props) played = $$props.played;
if ('currentTime' in $$props) currentTime = $$props.currentTime;
if ('duration' in $$props) duration = $$props.duration;
if ('paused' in $$props) paused = $$props.paused;
if ('volume' in $$props) volume = $$props.volume;
}; };
} }
class SvelteComponent extends SvelteComponent_1 { class SvelteComponent extends SvelteComponent_1 {
constructor(options) { constructor(options) {
super(); super();
init(this, options, define, create_fragment, safe_not_equal); init(this, options, instance, create_fragment, safe_not_equal);
} }
get buffered() { get buffered() {
return this.$$.get().buffered; return this.$$.ctx.buffered;
} }
set buffered(value) { set buffered(buffered) {
this.$set({ buffered: value }); this.$set({ buffered });
flush(); flush();
} }
get seekable() { get seekable() {
return this.$$.get().seekable; return this.$$.ctx.seekable;
} }
set seekable(value) { set seekable(seekable) {
this.$set({ seekable: value }); this.$set({ seekable });
flush(); flush();
} }
get played() { get played() {
return this.$$.get().played; return this.$$.ctx.played;
} }
set played(value) { set played(played) {
this.$set({ played: value }); this.$set({ played });
flush(); flush();
} }
get currentTime() { get currentTime() {
return this.$$.get().currentTime; return this.$$.ctx.currentTime;
} }
set currentTime(value) { set currentTime(currentTime) {
this.$set({ currentTime: value }); this.$set({ currentTime });
flush(); flush();
} }
get duration() { get duration() {
return this.$$.get().duration; return this.$$.ctx.duration;
} }
set duration(value) { set duration(duration) {
this.$set({ duration: value }); this.$set({ duration });
flush(); flush();
} }
get paused() { get paused() {
return this.$$.get().paused; return this.$$.ctx.paused;
} }
set paused(value) { set paused(paused) {
this.$set({ paused: value }); this.$set({ paused });
flush(); flush();
} }
get volume() { get volume() {
return this.$$.get().volume; return this.$$.ctx.volume;
} }
set volume(value) { set volume(volume) {
this.$set({ volume: value }); this.$set({ volume });
flush(); flush();
} }
} }

@ -55,7 +55,7 @@ function create_fragment(component, ctx) {
class SvelteComponent extends SvelteComponent_1 { class SvelteComponent extends SvelteComponent_1 {
constructor(options) { constructor(options) {
super(); super();
init(this, options, noop, create_fragment, safe_not_equal); init(this, options, props => props, create_fragment, safe_not_equal);
} }
} }

@ -63,28 +63,28 @@ function create_fragment(component, ctx) {
}; };
} }
function define($$self, $$props) { function instance($$self, $$props) {
let { current } = $$props; let { current } = $$props;
$$self.$$.get = () => ({ current });
$$self.$$.set = $$props => { $$self.$$.set = $$props => {
if ('current' in $$props) current = $$props.current; if ('current' in $$props) current = $$props.current;
}; };
return { current };
} }
class SvelteComponent extends SvelteComponent_1 { class SvelteComponent extends SvelteComponent_1 {
constructor(options) { constructor(options) {
super(); super();
init(this, options, define, create_fragment, safe_not_equal); init(this, options, instance, create_fragment, safe_not_equal);
} }
get current() { get current() {
return this.$$.get().current; return this.$$.ctx.current;
} }
set current(value) { set current(current) {
this.$set({ current: value }); this.$set({ current });
flush(); flush();
} }
} }

@ -23,7 +23,7 @@ function foo(bar) {
class SvelteComponent extends SvelteComponent_1 { class SvelteComponent extends SvelteComponent_1 {
constructor(options) { constructor(options) {
super(); super();
init(this, options, noop, create_fragment, safe_not_equal); init(this, options, props => props, create_fragment, safe_not_equal);
} }
get foo() { get foo() {

@ -38,7 +38,7 @@ function create_fragment(component, ctx) {
class SvelteComponent extends SvelteComponent_1 { class SvelteComponent extends SvelteComponent_1 {
constructor(options) { constructor(options) {
super(); super();
init(this, options, noop, create_fragment, safe_not_equal); init(this, options, props => props, create_fragment, safe_not_equal);
} }
} }

@ -22,28 +22,28 @@ function create_fragment(component, ctx) {
}; };
} }
function define($$self, $$props) { function instance($$self, $$props) {
let { custom } = $$props; let { custom } = $$props;
$$self.$$.get = () => ({ custom });
$$self.$$.set = $$props => { $$self.$$.set = $$props => {
if ('custom' in $$props) custom = $$props.custom; if ('custom' in $$props) custom = $$props.custom;
}; };
return { custom };
} }
class SvelteComponent extends SvelteComponent_1 { class SvelteComponent extends SvelteComponent_1 {
constructor(options) { constructor(options) {
super(); super();
init(this, options, define, create_fragment, safe_not_equal); init(this, options, instance, create_fragment, safe_not_equal);
} }
get custom() { get custom() {
return this.$$.get().custom; return this.$$.ctx.custom;
} }
set custom(value) { set custom(custom) {
this.$set({ custom: value }); this.$set({ custom });
flush(); flush();
} }
} }

@ -249,11 +249,9 @@ function create_fragment(component, ctx) {
}; };
} }
function define($$self, $$props) { function instance($$self, $$props) {
let { a, b, c, d, e } = $$props; let { a, b, c, d, e } = $$props;
$$self.$$.get = () => ({ a, b, c, d, e });
$$self.$$.set = $$props => { $$self.$$.set = $$props => {
if ('a' in $$props) a = $$props.a; if ('a' in $$props) a = $$props.a;
if ('b' in $$props) b = $$props.b; if ('b' in $$props) b = $$props.b;
@ -261,56 +259,58 @@ function define($$self, $$props) {
if ('d' in $$props) d = $$props.d; if ('d' in $$props) d = $$props.d;
if ('e' in $$props) e = $$props.e; if ('e' in $$props) e = $$props.e;
}; };
return { a, b, c, d, e };
} }
class SvelteComponent extends SvelteComponent_1 { class SvelteComponent extends SvelteComponent_1 {
constructor(options) { constructor(options) {
super(); super();
init(this, options, define, create_fragment, safe_not_equal); init(this, options, instance, create_fragment, safe_not_equal);
} }
get a() { get a() {
return this.$$.get().a; return this.$$.ctx.a;
} }
set a(value) { set a(a) {
this.$set({ a: value }); this.$set({ a });
flush(); flush();
} }
get b() { get b() {
return this.$$.get().b; return this.$$.ctx.b;
} }
set b(value) { set b(b) {
this.$set({ b: value }); this.$set({ b });
flush(); flush();
} }
get c() { get c() {
return this.$$.get().c; return this.$$.ctx.c;
} }
set c(value) { set c(c) {
this.$set({ c: value }); this.$set({ c });
flush(); flush();
} }
get d() { get d() {
return this.$$.get().d; return this.$$.ctx.d;
} }
set d(value) { set d(d) {
this.$set({ d: value }); this.$set({ d });
flush(); flush();
} }
get e() { get e() {
return this.$$.get().e; return this.$$.ctx.e;
} }
set e(value) { set e(e) {
this.$set({ e: value }); this.$set({ e });
flush(); flush();
} }
} }

@ -56,32 +56,32 @@ function create_fragment(component, ctx) {
}; };
} }
function define($$self, $$props, $$make_dirty) { function instance($$self, $$props, $$invalidate) {
let { y } = $$props; let { y } = $$props;
function onwindowscroll() { function onwindowscroll() {
y = window.pageYOffset; $$make_dirty('y'); y = window.pageYOffset; $$invalidate('y', y);
} }
$$self.$$.get = () => ({ y, onwindowscroll });
$$self.$$.set = $$props => { $$self.$$.set = $$props => {
if ('y' in $$props) y = $$props.y; if ('y' in $$props) y = $$props.y;
}; };
return { y, onwindowscroll };
} }
class SvelteComponent extends SvelteComponent_1 { class SvelteComponent extends SvelteComponent_1 {
constructor(options) { constructor(options) {
super(); super();
init(this, options, define, create_fragment, safe_not_equal); init(this, options, instance, create_fragment, safe_not_equal);
} }
get y() { get y() {
return this.$$.get().y; return this.$$.ctx.y;
} }
set y(value) { set y(y) {
this.$set({ y: value }); this.$set({ y });
flush(); flush();
} }
} }

Loading…
Cancel
Save