update tests

pull/3945/head
Rich Harris 6 years ago
parent 9659602d4f
commit b574b705a9

@ -23,8 +23,8 @@ function create_fragment(ctx) {
insert(target, button, anchor);
foo_action = foo.call(null, button, ctx[1]) || ({});
},
p(ctx, [changed]) {
if (is_function(foo_action.update) && changed & 1) foo_action.update.call(null, ctx[1]);
p(ctx, [dirty]) {
if (is_function(foo_action.update) && dirty & 1) foo_action.update.call(null, ctx[1]);
},
i: noop,
o: noop,

@ -27,8 +27,8 @@ function create_fragment(ctx) {
insert(target, details, anchor);
details.open = ctx[0];
},
p(ctx, [changed]) {
if (changed & 1) {
p(ctx, [dirty]) {
if (dirty & 1) {
details.open = ctx[0];
}
},

@ -37,10 +37,10 @@ function create_fragment(ctx) {
insert(target, input, anchor);
set_input_value(input, ctx[0]);
},
p(ctx, [changed]) {
if (changed & 1) set_data(t0, ctx[0]);
p(ctx, [dirty]) {
if (dirty & 1) set_data(t0, ctx[0]);
if (changed & 1 && input.value !== ctx[0]) {
if (dirty & 1 && input.value !== ctx[0]) {
set_input_value(input, ctx[0]);
}
},

@ -34,8 +34,8 @@ function create_fragment(ctx) {
insert(target, p, anchor);
append(p, t);
},
p(ctx, [changed]) {
if (changed & 1) set_data(t, ctx[0]);
p(ctx, [dirty]) {
if (dirty & 1) set_data(t, ctx[0]);
},
i: noop,
o: noop,

@ -46,12 +46,12 @@ function create_fragment(ctx) {
set_input_value(input, ctx[0]);
current = true;
},
p(ctx, [changed]) {
p(ctx, [dirty]) {
const bar_changes = {};
if (changed & 1) bar_changes.x = ctx[0];
if (dirty & 1) bar_changes.x = ctx[0];
bar.$set(bar_changes);
if (changed & 1 && input.value !== ctx[0]) {
if (dirty & 1 && input.value !== ctx[0]) {
set_input_value(input, ctx[0]);
}
},

@ -28,8 +28,8 @@ function create_fragment(ctx) {
insert(target, h1, anchor);
append(h1, t);
},
p(ctx, [changed]) {
if (changed & 1) set_data(t, ctx[0]);
p(ctx, [dirty]) {
if (dirty & 1) set_data(t, ctx[0]);
},
i: noop,
o: noop,

@ -39,8 +39,8 @@ function create_fragment(ctx) {
insert(target, t1, anchor);
insert(target, button, anchor);
},
p(ctx, [changed]) {
if (changed & 2) set_data(t0, ctx[1]);
p(ctx, [dirty]) {
if (dirty & 2) set_data(t0, ctx[1]);
},
i: noop,
o: noop,

@ -29,8 +29,8 @@ function create_fragment(ctx) {
insert(target, t, anchor);
insert(target, div1, anchor);
},
p(ctx, [changed]) {
if (changed & 1) {
p(ctx, [dirty]) {
if (dirty & 1) {
attr(div1, "data-foo", ctx[0]);
}
},

@ -44,8 +44,8 @@ function create_fragment(ctx) {
append_dev(h1, t2);
insert_dev(target, t3, anchor);
},
p: function update(ctx, [changed]) {
if (changed & 1) set_data_dev(t1, ctx[0]);
p: function update(ctx, [dirty]) {
if (dirty & 1) set_data_dev(t1, ctx[0]);
debugger;
},
i: noop,

@ -53,10 +53,10 @@ function create_each_block(ctx) {
append_dev(span, t0);
insert_dev(target, t1, anchor);
},
p: function update(ctx, changed) {
if (changed & 1 && t0_value !== (t0_value = ctx[4].name + "")) set_data_dev(t0, t0_value);
p: function update(ctx, dirty) {
if (dirty & 1 && t0_value !== (t0_value = ctx[4].name + "")) set_data_dev(t0, t0_value);
if (changed & 15) {
if (dirty & 15) {
const foo = ctx[1];
const bar = ctx[2];
const baz = ctx[3];
@ -119,8 +119,8 @@ function create_fragment(ctx) {
append_dev(p, t1);
append_dev(p, t2);
},
p: function update(ctx, [changed]) {
if (changed & 1) {
p: function update(ctx, [dirty]) {
if (dirty & 1) {
each_value = ctx[0];
let i;
@ -128,7 +128,7 @@ function create_fragment(ctx) {
const child_ctx = get_each_context(ctx, each_value, i);
if (each_blocks[i]) {
each_blocks[i].p(child_ctx, changed);
each_blocks[i].p(child_ctx, dirty);
} else {
each_blocks[i] = create_each_block(child_ctx);
each_blocks[i].c();
@ -143,7 +143,7 @@ function create_fragment(ctx) {
each_blocks.length = each_value.length;
}
if (changed & 2) set_data_dev(t2, ctx[1]);
if (dirty & 2) set_data_dev(t2, ctx[1]);
},
i: noop,
o: noop,

@ -50,10 +50,10 @@ function create_each_block(ctx) {
append_dev(span, t0);
insert_dev(target, t1, anchor);
},
p: function update(ctx, changed) {
if (changed & 1 && t0_value !== (t0_value = ctx[2].name + "")) set_data_dev(t0, t0_value);
p: function update(ctx, dirty) {
if (dirty & 1 && t0_value !== (t0_value = ctx[2].name + "")) set_data_dev(t0, t0_value);
if (changed & 2) {
if (dirty & 2) {
const foo = ctx[1];
console.log({ foo });
debugger;
@ -113,8 +113,8 @@ function create_fragment(ctx) {
append_dev(p, t1);
append_dev(p, t2);
},
p: function update(ctx, [changed]) {
if (changed & 1) {
p: function update(ctx, [dirty]) {
if (dirty & 1) {
each_value = ctx[0];
let i;
@ -122,7 +122,7 @@ function create_fragment(ctx) {
const child_ctx = get_each_context(ctx, each_value, i);
if (each_blocks[i]) {
each_blocks[i].p(child_ctx, changed);
each_blocks[i].p(child_ctx, dirty);
} else {
each_blocks[i] = create_each_block(child_ctx);
each_blocks[i].c();
@ -137,7 +137,7 @@ function create_fragment(ctx) {
each_blocks.length = each_value.length;
}
if (changed & 2) set_data_dev(t2, ctx[1]);
if (dirty & 2) set_data_dev(t2, ctx[1]);
},
i: noop,
o: noop,

@ -23,8 +23,8 @@ function create_fragment(ctx) {
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
},
m: noop,
p: function update(ctx, [changed]) {
if (changed & 3) {
p: function update(ctx, [dirty]) {
if (dirty & 3) {
const obj = ctx[0];
const kobzol = ctx[1];
console.log({ obj, kobzol });

@ -88,8 +88,8 @@ function create_fragment(ctx) {
insert_dev(target, each_1_anchor, anchor);
},
p: function update(ctx, [changed]) {
if (changed & 0) {
p: function update(ctx, [dirty]) {
if (dirty & 0) {
each_value = things;
let i;
@ -97,7 +97,7 @@ function create_fragment(ctx) {
const child_ctx = get_each_context(ctx, each_value, i);
if (each_blocks[i]) {
each_blocks[i].p(child_ctx, changed);
each_blocks[i].p(child_ctx, dirty);
} else {
each_blocks[i] = create_each_block(child_ctx);
each_blocks[i].c();

@ -35,8 +35,8 @@ function create_each_block(ctx) {
insert(target, span, anchor);
append(span, t);
},
p(ctx, changed) {
if (changed & 1 && t_value !== (t_value = ctx[1] + "")) set_data(t, t_value);
p(ctx, dirty) {
if (dirty & 1 && t_value !== (t_value = ctx[1] + "")) set_data(t, t_value);
},
d(detaching) {
if (detaching) detach(span);
@ -68,8 +68,8 @@ function create_fragment(ctx) {
insert(target, each_1_anchor, anchor);
},
p(ctx, [changed]) {
if (changed & 1) {
p(ctx, [dirty]) {
if (dirty & 1) {
each_value = ctx[0];
let i;
@ -77,7 +77,7 @@ function create_fragment(ctx) {
const child_ctx = get_each_context(ctx, each_value, i);
if (each_blocks[i]) {
each_blocks[i].p(child_ctx, changed);
each_blocks[i].p(child_ctx, dirty);
} else {
each_blocks[i] = create_each_block(child_ctx);
each_blocks[i].c();

@ -41,9 +41,9 @@ function create_fragment(ctx) {
append_dev(p, t1);
append_dev(p, t2);
},
p: function update(ctx, [changed]) {
if (changed & 1 && t0_value !== (t0_value = Math.max(0, ctx[0]) + "")) set_data_dev(t0, t0_value);
if (changed & 2) set_data_dev(t2, ctx[1]);
p: function update(ctx, [dirty]) {
if (dirty & 1 && t0_value !== (t0_value = Math.max(0, ctx[0]) + "")) set_data_dev(t0, t0_value);
if (dirty & 2) set_data_dev(t2, ctx[1]);
},
i: noop,
o: noop,

@ -35,8 +35,8 @@ function create_each_block(ctx) {
insert(target, span, anchor);
append(span, t);
},
p(ctx, changed) {
if (changed & 31 && t_value !== (t_value = ctx[5] + "")) set_data(t, t_value);
p(ctx, dirty) {
if (dirty & 31 && t_value !== (t_value = ctx[5] + "")) set_data(t, t_value);
},
d(detaching) {
if (detaching) detach(span);
@ -68,8 +68,8 @@ function create_fragment(ctx) {
insert(target, each_1_anchor, anchor);
},
p(ctx, [changed]) {
if (changed & 31) {
p(ctx, [dirty]) {
if (dirty & 31) {
each_value = [ctx[0], ctx[1], ctx[2], ctx[3], ctx[4]];
let i;
@ -77,7 +77,7 @@ function create_fragment(ctx) {
const child_ctx = get_each_context(ctx, each_value, i);
if (each_blocks[i]) {
each_blocks[i].p(child_ctx, changed);
each_blocks[i].p(child_ctx, dirty);
} else {
each_blocks[i] = create_each_block(child_ctx);
each_blocks[i].c();

@ -69,10 +69,10 @@ function create_each_block(ctx) {
append(div, t6);
html_tag.m(div);
},
p(ctx, changed) {
if (changed & 1 && t2_value !== (t2_value = ctx[4].author + "")) set_data(t2, t2_value);
if (changed & 7 && t4_value !== (t4_value = ctx[1](ctx[4].time, ctx[2]) + "")) set_data(t4, t4_value);
if (changed & 1 && raw_value !== (raw_value = ctx[4].html + "")) html_tag.p(raw_value);
p(ctx, dirty) {
if (dirty & 1 && t2_value !== (t2_value = ctx[4].author + "")) set_data(t2, t2_value);
if (dirty & 7 && t4_value !== (t4_value = ctx[1](ctx[4].time, ctx[2]) + "")) set_data(t4, t4_value);
if (dirty & 1 && raw_value !== (raw_value = ctx[4].html + "")) html_tag.p(raw_value);
},
d(detaching) {
if (detaching) detach(div);
@ -110,8 +110,8 @@ function create_fragment(ctx) {
insert(target, p, anchor);
append(p, t1);
},
p(ctx, [changed]) {
if (changed & 7) {
p(ctx, [dirty]) {
if (dirty & 7) {
each_value = ctx[0];
let i;
@ -119,7 +119,7 @@ function create_fragment(ctx) {
const child_ctx = get_each_context(ctx, each_value, i);
if (each_blocks[i]) {
each_blocks[i].p(child_ctx, changed);
each_blocks[i].p(child_ctx, dirty);
} else {
each_blocks[i] = create_each_block(child_ctx);
each_blocks[i].c();
@ -134,7 +134,7 @@ function create_fragment(ctx) {
each_blocks.length = each_value.length;
}
if (changed & 8) set_data(t1, ctx[3]);
if (dirty & 8) set_data(t1, ctx[3]);
},
i: noop,
o: noop,

@ -43,8 +43,8 @@ function create_each_block(key_1, ctx) {
insert(target, div, anchor);
append(div, t);
},
p(ctx, changed) {
if (changed & 1 && t_value !== (t_value = ctx[1].name + "")) set_data(t, t_value);
p(ctx, dirty) {
if (dirty & 1 && t_value !== (t_value = ctx[1].name + "")) set_data(t, t_value);
},
r() {
rect = div.getBoundingClientRect();
@ -91,10 +91,10 @@ function create_fragment(ctx) {
insert(target, each_1_anchor, anchor);
},
p(ctx, [changed]) {
p(ctx, [dirty]) {
const each_value = ctx[0];
for (let i = 0; i < each_blocks.length; i += 1) each_blocks[i].r();
each_blocks = update_keyed_each(each_blocks, changed, get_key, 1, ctx, each_value, each_1_lookup, each_1_anchor.parentNode, fix_and_destroy_block, create_each_block, each_1_anchor, get_each_context);
each_blocks = update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value, each_1_lookup, each_1_anchor.parentNode, fix_and_destroy_block, create_each_block, each_1_anchor, get_each_context);
for (let i = 0; i < each_blocks.length; i += 1) each_blocks[i].a();
},
i: noop,

@ -39,8 +39,8 @@ function create_each_block(key_1, ctx) {
insert(target, div, anchor);
append(div, t);
},
p(ctx, changed) {
if (changed & 1 && t_value !== (t_value = ctx[1].name + "")) set_data(t, t_value);
p(ctx, dirty) {
if (dirty & 1 && t_value !== (t_value = ctx[1].name + "")) set_data(t, t_value);
},
d(detaching) {
if (detaching) detach(div);
@ -76,9 +76,9 @@ function create_fragment(ctx) {
insert(target, each_1_anchor, anchor);
},
p(ctx, [changed]) {
p(ctx, [dirty]) {
const each_value = ctx[0];
each_blocks = update_keyed_each(each_blocks, changed, get_key, 1, ctx, each_value, each_1_lookup, each_1_anchor.parentNode, destroy_block, create_each_block, each_1_anchor, get_each_context);
each_blocks = update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value, each_1_lookup, each_1_anchor.parentNode, destroy_block, create_each_block, each_1_anchor, get_each_context);
},
i: noop,
o: noop,

@ -61,9 +61,9 @@ function create_fragment(ctx) {
insert(target, t5, anchor);
insert(target, button2, anchor);
},
p(new_ctx, [changed]) {
p(new_ctx, [dirty]) {
ctx = new_ctx;
if (changed & 2) set_data(t4, ctx[1]);
if (dirty & 2) set_data(t4, ctx[1]);
},
i: noop,
o: noop,

@ -48,7 +48,7 @@ function create_if_block(ctx) {
function create_fragment(ctx) {
let if_block_anchor;
function select_block_type(ctx, changed) {
function select_block_type(ctx, dirty) {
if (ctx[0]) return create_if_block;
return create_else_block;
}
@ -65,8 +65,8 @@ function create_fragment(ctx) {
if_block.m(target, anchor);
insert(target, if_block_anchor, anchor);
},
p(ctx, [changed]) {
if (current_block_type !== (current_block_type = select_block_type(ctx, changed))) {
p(ctx, [dirty]) {
if (current_block_type !== (current_block_type = select_block_type(ctx, dirty))) {
if_block.d(1);
if_block = current_block_type(ctx);

@ -40,7 +40,7 @@ function create_fragment(ctx) {
if (if_block) if_block.m(target, anchor);
insert(target, if_block_anchor, anchor);
},
p(ctx, [changed]) {
p(ctx, [dirty]) {
if (ctx[0]) {
if (!if_block) {
if_block = create_if_block(ctx);

@ -22,12 +22,12 @@ function create_fragment(ctx) {
m(target, anchor) {
insert(target, div, anchor);
},
p(ctx, [changed]) {
if (changed & 1) {
p(ctx, [dirty]) {
if (dirty & 1) {
set_style(div, "color", ctx[0]);
}
if (changed & 6) {
if (dirty & 6) {
set_style(div, "transform", "translate(" + ctx[1] + "px," + ctx[2] + "px)");
}
},

@ -21,8 +21,8 @@ function create_fragment(ctx) {
m(target, anchor) {
insert(target, div, anchor);
},
p(ctx, [changed]) {
if (changed & 1) {
p(ctx, [dirty]) {
if (dirty & 1) {
set_style(div, "background", "url(data:image/png;base64," + ctx[0] + ")");
}
},

@ -21,8 +21,8 @@ function create_fragment(ctx) {
m(target, anchor) {
insert(target, div, anchor);
},
p(ctx, [changed]) {
if (changed & 1) {
p(ctx, [dirty]) {
if (dirty & 1) {
set_style(div, "color", ctx[0]);
}
},

@ -30,12 +30,12 @@ function create_fragment(ctx) {
insert(target, t, anchor);
insert(target, div1, anchor);
},
p(ctx, [changed]) {
if (changed & 1) {
p(ctx, [dirty]) {
if (dirty & 1) {
attr(div0, "style", ctx[0]);
}
if (changed & 6 && div1_style_value !== (div1_style_value = "" + (ctx[1] + ": " + ctx[2]))) {
if (dirty & 6 && div1_style_value !== (div1_style_value = "" + (ctx[1] + ": " + ctx[2]))) {
attr(div1, "style", div1_style_value);
}
},

@ -40,8 +40,8 @@ function create_fragment(ctx) {
append(form, t0);
append(form, button);
},
p(ctx, [changed]) {
if (changed & 1 && input.value !== ctx[0]) {
p(ctx, [dirty]) {
if (dirty & 1 && input.value !== ctx[0]) {
set_input_value(input, ctx[0]);
}
},

@ -28,8 +28,8 @@ function create_fragment(ctx) {
insert(target, input, anchor);
set_input_value(input, ctx[0]);
},
p(ctx, [changed]) {
if (changed & 1) {
p(ctx, [dirty]) {
if (dirty & 1) {
set_input_value(input, ctx[0]);
}
},

@ -25,8 +25,8 @@ function create_fragment(ctx) {
insert(target, input, anchor);
input.checked = ctx[0];
},
p(ctx, [changed]) {
if (changed & 1) {
p(ctx, [dirty]) {
if (dirty & 1) {
input.checked = ctx[0];
}
},

@ -39,8 +39,8 @@ function create_fragment(ctx) {
append(p, t2);
append(p, t3);
},
p(ctx, [changed]) {
if (changed & 1) set_data(t3, ctx[0]);
p(ctx, [dirty]) {
if (dirty & 1) set_data(t3, ctx[0]);
},
i: noop,
o: noop,

@ -40,8 +40,8 @@ function create_fragment(ctx) {
append(p, t2);
append(p, t3);
},
p(ctx, [changed]) {
if (changed & 1 && t3_value !== (t3_value = ctx[0].length + "")) set_data(t3, t3_value);
p(ctx, [dirty]) {
if (dirty & 1 && t3_value !== (t3_value = ctx[0].length + "")) set_data(t3, t3_value);
},
i: noop,
o: noop,

@ -39,8 +39,8 @@ function create_fragment(ctx) {
append(p, t2);
append(p, t3);
},
p(ctx, [changed]) {
if (changed & 1) set_data(t3, ctx[0]);
p(ctx, [dirty]) {
if (dirty & 1) set_data(t3, ctx[0]);
},
i: noop,
o: noop,

@ -40,8 +40,8 @@ function create_fragment(ctx) {
append(p, t2);
append(p, t3);
},
p(ctx, [changed]) {
if (changed & 1 && t3_value !== (t3_value = ctx[0].length + "")) set_data(t3, t3_value);
p(ctx, [dirty]) {
if (dirty & 1 && t3_value !== (t3_value = ctx[0].length + "")) set_data(t3, t3_value);
},
i: noop,
o: noop,

@ -67,20 +67,20 @@ function create_fragment(ctx) {
audio.playbackRate = ctx[7];
}
},
p(ctx, [changed]) {
if (!audio_updating && changed & 8 && !isNaN(ctx[3])) {
p(ctx, [dirty]) {
if (!audio_updating && dirty & 8 && !isNaN(ctx[3])) {
audio.currentTime = ctx[3];
}
if (changed & 32 && audio_is_paused !== (audio_is_paused = ctx[5])) {
if (dirty & 32 && audio_is_paused !== (audio_is_paused = ctx[5])) {
audio[audio_is_paused ? "pause" : "play"]();
}
if (changed & 64 && !isNaN(ctx[6])) {
if (dirty & 64 && !isNaN(ctx[6])) {
audio.volume = ctx[6];
}
if (changed & 128 && !isNaN(ctx[7])) {
if (dirty & 128 && !isNaN(ctx[7])) {
audio.playbackRate = ctx[7];
}

@ -43,8 +43,8 @@ function create_fragment(ctx) {
}
}
},
p(ctx, [changed]) {
if (changed & 1 && select_value_value !== (select_value_value = ctx[0])) {
p(ctx, [dirty]) {
if (dirty & 1 && select_value_value !== (select_value_value = ctx[0])) {
for (var i = 0; i < select.options.length; i += 1) {
var option = select.options[i];

@ -44,12 +44,12 @@ function create_fragment(ctx) {
insert(target, t, anchor);
insert(target, img1, anchor);
},
p(ctx, [changed]) {
if (changed & 1 && img0.src !== (img0_src_value = ctx[0])) {
p(ctx, [dirty]) {
if (dirty & 1 && img0.src !== (img0_src_value = ctx[0])) {
attr(img0, "src", img0_src_value);
}
if (changed & 2 && img1.src !== (img1_src_value = "" + (ctx[1] + ".jpg"))) {
if (dirty & 2 && img1.src !== (img1_src_value = "" + (ctx[1] + ".jpg"))) {
attr(img1, "src", img1_src_value);
}
},

@ -8,8 +8,8 @@ function create_fragment(ctx) {
return {
c: noop,
m: noop,
p(ctx, [changed]) {
if (changed & 1 && title_value !== (title_value = "a " + ctx[0] + " title")) {
p(ctx, [dirty]) {
if (dirty & 1 && title_value !== (title_value = "a " + ctx[0] + " title")) {
document.title = title_value;
}
},

@ -26,7 +26,7 @@ function create_if_block(ctx) {
if (if_block) if_block.m(target, anchor);
insert(target, if_block_anchor, anchor);
},
p(ctx, changed) {
p(ctx, dirty) {
if (ctx[1]) {
if (!if_block) {
if_block = create_if_block_1(ctx);
@ -91,10 +91,10 @@ function create_fragment(ctx) {
if (if_block) if_block.m(target, anchor);
insert(target, if_block_anchor, anchor);
},
p(ctx, [changed]) {
p(ctx, [dirty]) {
if (ctx[0]) {
if (if_block) {
if_block.p(ctx, changed);
if_block.p(ctx, dirty);
} else {
if_block = create_if_block(ctx);
if_block.c();

@ -61,7 +61,7 @@ function create_fragment(ctx) {
insert(target, if_block_anchor, anchor);
current = true;
},
p(ctx, [changed]) {
p(ctx, [dirty]) {
if (ctx[0] < 5) {
if (!if_block) {
if_block = create_if_block(ctx);

@ -56,8 +56,8 @@ function create_fragment(ctx) {
append(p3, t8);
append(p3, t9);
},
p(ctx, [changed]) {
if (changed & 1) set_data(t9, ctx[0]);
p(ctx, [dirty]) {
if (dirty & 1) set_data(t9, ctx[0]);
},
i: noop,
o: noop,

@ -27,8 +27,8 @@ function create_fragment(ctx) {
insert(target, p, anchor);
append(p, t);
},
p(ctx, [changed]) {
if (changed & 1) set_data(t, ctx[0]);
p(ctx, [dirty]) {
if (dirty & 1) set_data(t, ctx[0]);
},
i: noop,
o: noop,

@ -155,7 +155,7 @@ function create_fragment(ctx) {
if (if_block4) if_block4.m(target, anchor);
insert(target, if_block4_anchor, anchor);
},
p(ctx, [changed]) {
p(ctx, [dirty]) {
if (ctx[0]) {
if (!if_block0) {
if_block0 = create_if_block_4(ctx);

@ -47,8 +47,8 @@ function create_fragment(ctx) {
insert(target, video, anchor);
video_resize_listener = add_resize_listener(video, ctx[4].bind(video));
},
p(ctx, [changed]) {
if (!video_updating && changed & 1 && !isNaN(ctx[0])) {
p(ctx, [dirty]) {
if (!video_updating && dirty & 1 && !isNaN(ctx[0])) {
video.currentTime = ctx[0];
}

@ -46,15 +46,15 @@ function create_fragment(ctx) {
append(p, t0);
append(p, t1);
},
p(ctx, [changed]) {
if (changed & 1 && !scrolling) {
p(ctx, [dirty]) {
if (dirty & 1 && !scrolling) {
scrolling = true;
clearTimeout(scrolling_timeout);
scrollTo(window.pageXOffset, ctx[0]);
scrolling_timeout = setTimeout(clear_scrolling, 100);
}
if (changed & 1) set_data(t1, ctx[0]);
if (dirty & 1) set_data(t1, ctx[0]);
},
i: noop,
o: noop,

Loading…
Cancel
Save