diff --git a/test/js/samples/action-custom-event-handler/expected.js b/test/js/samples/action-custom-event-handler/expected.js index 00c4a1facc..d21b16571d 100644 --- a/test/js/samples/action-custom-event-handler/expected.js +++ b/test/js/samples/action-custom-event-handler/expected.js @@ -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, diff --git a/test/js/samples/bind-open/expected.js b/test/js/samples/bind-open/expected.js index 11299362f9..e99c3bbd6b 100644 --- a/test/js/samples/bind-open/expected.js +++ b/test/js/samples/bind-open/expected.js @@ -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]; } }, diff --git a/test/js/samples/capture-inject-dev-only/expected.js b/test/js/samples/capture-inject-dev-only/expected.js index c001b97677..d3b175862d 100644 --- a/test/js/samples/capture-inject-dev-only/expected.js +++ b/test/js/samples/capture-inject-dev-only/expected.js @@ -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]); } }, diff --git a/test/js/samples/collapses-text-around-comments/expected.js b/test/js/samples/collapses-text-around-comments/expected.js index 8fd562b475..9f2ab90797 100644 --- a/test/js/samples/collapses-text-around-comments/expected.js +++ b/test/js/samples/collapses-text-around-comments/expected.js @@ -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, diff --git a/test/js/samples/component-static-var/expected.js b/test/js/samples/component-static-var/expected.js index c386604693..4785fc9527 100644 --- a/test/js/samples/component-static-var/expected.js +++ b/test/js/samples/component-static-var/expected.js @@ -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]); } }, diff --git a/test/js/samples/component-store-access-invalidate/expected.js b/test/js/samples/component-store-access-invalidate/expected.js index e84a0bc8fe..639404b4bb 100644 --- a/test/js/samples/component-store-access-invalidate/expected.js +++ b/test/js/samples/component-store-access-invalidate/expected.js @@ -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, diff --git a/test/js/samples/component-store-reassign-invalidate/expected.js b/test/js/samples/component-store-reassign-invalidate/expected.js index c878b19cc2..9876626cf9 100644 --- a/test/js/samples/component-store-reassign-invalidate/expected.js +++ b/test/js/samples/component-store-reassign-invalidate/expected.js @@ -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, diff --git a/test/js/samples/data-attribute/expected.js b/test/js/samples/data-attribute/expected.js index 4a574b68ae..d7edc739e8 100644 --- a/test/js/samples/data-attribute/expected.js +++ b/test/js/samples/data-attribute/expected.js @@ -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]); } }, diff --git a/test/js/samples/debug-empty/expected.js b/test/js/samples/debug-empty/expected.js index ad9949fe2a..0f55de4df9 100644 --- a/test/js/samples/debug-empty/expected.js +++ b/test/js/samples/debug-empty/expected.js @@ -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, diff --git a/test/js/samples/debug-foo-bar-baz-things/expected.js b/test/js/samples/debug-foo-bar-baz-things/expected.js index d85fb1c0dc..11ff13bb46 100644 --- a/test/js/samples/debug-foo-bar-baz-things/expected.js +++ b/test/js/samples/debug-foo-bar-baz-things/expected.js @@ -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, diff --git a/test/js/samples/debug-foo/expected.js b/test/js/samples/debug-foo/expected.js index 2eeaf31736..a2b19de8cd 100644 --- a/test/js/samples/debug-foo/expected.js +++ b/test/js/samples/debug-foo/expected.js @@ -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, diff --git a/test/js/samples/debug-hoisted/expected.js b/test/js/samples/debug-hoisted/expected.js index 7115f75cdc..37b983c8cc 100644 --- a/test/js/samples/debug-hoisted/expected.js +++ b/test/js/samples/debug-hoisted/expected.js @@ -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 }); diff --git a/test/js/samples/debug-no-dependencies/expected.js b/test/js/samples/debug-no-dependencies/expected.js index 1077683172..28c5b35dc5 100644 --- a/test/js/samples/debug-no-dependencies/expected.js +++ b/test/js/samples/debug-no-dependencies/expected.js @@ -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(); diff --git a/test/js/samples/deconflict-builtins/expected.js b/test/js/samples/deconflict-builtins/expected.js index 2c64724ea1..9e4763be65 100644 --- a/test/js/samples/deconflict-builtins/expected.js +++ b/test/js/samples/deconflict-builtins/expected.js @@ -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(); diff --git a/test/js/samples/dev-warning-missing-data-computed/expected.js b/test/js/samples/dev-warning-missing-data-computed/expected.js index 544759d9c7..c18817c812 100644 --- a/test/js/samples/dev-warning-missing-data-computed/expected.js +++ b/test/js/samples/dev-warning-missing-data-computed/expected.js @@ -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, diff --git a/test/js/samples/each-block-array-literal/expected.js b/test/js/samples/each-block-array-literal/expected.js index e59a929b22..b47b1cca95 100644 --- a/test/js/samples/each-block-array-literal/expected.js +++ b/test/js/samples/each-block-array-literal/expected.js @@ -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(); diff --git a/test/js/samples/each-block-changed-check/expected.js b/test/js/samples/each-block-changed-check/expected.js index 4c27763200..f98c738203 100644 --- a/test/js/samples/each-block-changed-check/expected.js +++ b/test/js/samples/each-block-changed-check/expected.js @@ -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, diff --git a/test/js/samples/each-block-keyed-animated/expected.js b/test/js/samples/each-block-keyed-animated/expected.js index 9033ead1c8..4aa238963f 100644 --- a/test/js/samples/each-block-keyed-animated/expected.js +++ b/test/js/samples/each-block-keyed-animated/expected.js @@ -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, diff --git a/test/js/samples/each-block-keyed/expected.js b/test/js/samples/each-block-keyed/expected.js index 6eb20971c3..aa949e95b9 100644 --- a/test/js/samples/each-block-keyed/expected.js +++ b/test/js/samples/each-block-keyed/expected.js @@ -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, diff --git a/test/js/samples/event-handler-dynamic/expected.js b/test/js/samples/event-handler-dynamic/expected.js index ea76b5d4dc..adf88c5e08 100644 --- a/test/js/samples/event-handler-dynamic/expected.js +++ b/test/js/samples/event-handler-dynamic/expected.js @@ -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, diff --git a/test/js/samples/if-block-no-update/expected.js b/test/js/samples/if-block-no-update/expected.js index 0db08dad9e..5600712e5b 100644 --- a/test/js/samples/if-block-no-update/expected.js +++ b/test/js/samples/if-block-no-update/expected.js @@ -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); diff --git a/test/js/samples/if-block-simple/expected.js b/test/js/samples/if-block-simple/expected.js index 62e233f209..9c1b6abd31 100644 --- a/test/js/samples/if-block-simple/expected.js +++ b/test/js/samples/if-block-simple/expected.js @@ -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); diff --git a/test/js/samples/inline-style-optimized-multiple/expected.js b/test/js/samples/inline-style-optimized-multiple/expected.js index 5bfe824974..f9ff9721ba 100644 --- a/test/js/samples/inline-style-optimized-multiple/expected.js +++ b/test/js/samples/inline-style-optimized-multiple/expected.js @@ -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)"); } }, diff --git a/test/js/samples/inline-style-optimized-url/expected.js b/test/js/samples/inline-style-optimized-url/expected.js index 3710db9969..806ced193f 100644 --- a/test/js/samples/inline-style-optimized-url/expected.js +++ b/test/js/samples/inline-style-optimized-url/expected.js @@ -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] + ")"); } }, diff --git a/test/js/samples/inline-style-optimized/expected.js b/test/js/samples/inline-style-optimized/expected.js index a5c160841c..d3f8e789be 100644 --- a/test/js/samples/inline-style-optimized/expected.js +++ b/test/js/samples/inline-style-optimized/expected.js @@ -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]); } }, diff --git a/test/js/samples/inline-style-unoptimized/expected.js b/test/js/samples/inline-style-unoptimized/expected.js index c244c332fa..48da85ede9 100644 --- a/test/js/samples/inline-style-unoptimized/expected.js +++ b/test/js/samples/inline-style-unoptimized/expected.js @@ -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); } }, diff --git a/test/js/samples/input-no-initial-value/expected.js b/test/js/samples/input-no-initial-value/expected.js index 0fe216292e..0ac875a15a 100644 --- a/test/js/samples/input-no-initial-value/expected.js +++ b/test/js/samples/input-no-initial-value/expected.js @@ -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]); } }, diff --git a/test/js/samples/input-range/expected.js b/test/js/samples/input-range/expected.js index db30d7c783..4693a0b707 100644 --- a/test/js/samples/input-range/expected.js +++ b/test/js/samples/input-range/expected.js @@ -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]); } }, diff --git a/test/js/samples/input-without-blowback-guard/expected.js b/test/js/samples/input-without-blowback-guard/expected.js index 1a9459809c..5a730a6973 100644 --- a/test/js/samples/input-without-blowback-guard/expected.js +++ b/test/js/samples/input-without-blowback-guard/expected.js @@ -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]; } }, diff --git a/test/js/samples/instrumentation-script-if-no-block/expected.js b/test/js/samples/instrumentation-script-if-no-block/expected.js index ca289069f9..74d9ab46b8 100644 --- a/test/js/samples/instrumentation-script-if-no-block/expected.js +++ b/test/js/samples/instrumentation-script-if-no-block/expected.js @@ -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, diff --git a/test/js/samples/instrumentation-script-x-equals-x/expected.js b/test/js/samples/instrumentation-script-x-equals-x/expected.js index 3d43d25700..0a1e271cbe 100644 --- a/test/js/samples/instrumentation-script-x-equals-x/expected.js +++ b/test/js/samples/instrumentation-script-x-equals-x/expected.js @@ -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, diff --git a/test/js/samples/instrumentation-template-if-no-block/expected.js b/test/js/samples/instrumentation-template-if-no-block/expected.js index 7ef6bd8c9a..4452b54aac 100644 --- a/test/js/samples/instrumentation-template-if-no-block/expected.js +++ b/test/js/samples/instrumentation-template-if-no-block/expected.js @@ -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, diff --git a/test/js/samples/instrumentation-template-x-equals-x/expected.js b/test/js/samples/instrumentation-template-x-equals-x/expected.js index bd5bf249fa..474d78ca7c 100644 --- a/test/js/samples/instrumentation-template-x-equals-x/expected.js +++ b/test/js/samples/instrumentation-template-x-equals-x/expected.js @@ -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, diff --git a/test/js/samples/media-bindings/expected.js b/test/js/samples/media-bindings/expected.js index 6387e0ca31..dcca20b248 100644 --- a/test/js/samples/media-bindings/expected.js +++ b/test/js/samples/media-bindings/expected.js @@ -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]; } diff --git a/test/js/samples/select-dynamic-value/expected.js b/test/js/samples/select-dynamic-value/expected.js index 03a7fc2b57..8f309aaed2 100644 --- a/test/js/samples/select-dynamic-value/expected.js +++ b/test/js/samples/select-dynamic-value/expected.js @@ -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]; diff --git a/test/js/samples/src-attribute-check/expected.js b/test/js/samples/src-attribute-check/expected.js index bfdf7a01c8..ab73564ab3 100644 --- a/test/js/samples/src-attribute-check/expected.js +++ b/test/js/samples/src-attribute-check/expected.js @@ -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); } }, diff --git a/test/js/samples/title/expected.js b/test/js/samples/title/expected.js index 800bf9801a..3d29c496a4 100644 --- a/test/js/samples/title/expected.js +++ b/test/js/samples/title/expected.js @@ -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; } }, diff --git a/test/js/samples/transition-local/expected.js b/test/js/samples/transition-local/expected.js index c93f66026b..8d72e74718 100644 --- a/test/js/samples/transition-local/expected.js +++ b/test/js/samples/transition-local/expected.js @@ -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(); diff --git a/test/js/samples/transition-repeated-outro/expected.js b/test/js/samples/transition-repeated-outro/expected.js index 62f0e86bd8..536cb95b2c 100644 --- a/test/js/samples/transition-repeated-outro/expected.js +++ b/test/js/samples/transition-repeated-outro/expected.js @@ -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); diff --git a/test/js/samples/unchanged-expression/expected.js b/test/js/samples/unchanged-expression/expected.js index 9c4e31aa69..eee0079a71 100644 --- a/test/js/samples/unchanged-expression/expected.js +++ b/test/js/samples/unchanged-expression/expected.js @@ -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, diff --git a/test/js/samples/unreferenced-state-not-invalidated/expected.js b/test/js/samples/unreferenced-state-not-invalidated/expected.js index b4e74b1a85..5fa679aecf 100644 --- a/test/js/samples/unreferenced-state-not-invalidated/expected.js +++ b/test/js/samples/unreferenced-state-not-invalidated/expected.js @@ -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, diff --git a/test/js/samples/use-elements-as-anchors/expected.js b/test/js/samples/use-elements-as-anchors/expected.js index a5db96f4fe..36344982bc 100644 --- a/test/js/samples/use-elements-as-anchors/expected.js +++ b/test/js/samples/use-elements-as-anchors/expected.js @@ -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); diff --git a/test/js/samples/video-bindings/expected.js b/test/js/samples/video-bindings/expected.js index 6f19bc9d49..4149d95059 100644 --- a/test/js/samples/video-bindings/expected.js +++ b/test/js/samples/video-bindings/expected.js @@ -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]; } diff --git a/test/js/samples/window-binding-scroll/expected.js b/test/js/samples/window-binding-scroll/expected.js index 09041d17b4..886c065333 100644 --- a/test/js/samples/window-binding-scroll/expected.js +++ b/test/js/samples/window-binding-scroll/expected.js @@ -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,