From 74d84d81e92eacb7fad67c6de9b065e55715c34f Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Mon, 18 Sep 2017 17:54:57 -0400 Subject: [PATCH] remove incorrect argument --- src/generators/dom/Block.ts | 2 +- .../samples/collapses-text-around-comments/expected-bundle.js | 2 +- test/js/samples/collapses-text-around-comments/expected.js | 2 +- test/js/samples/css-media-query/expected-bundle.js | 2 +- test/js/samples/css-media-query/expected.js | 2 +- test/js/samples/each-block-changed-check/expected-bundle.js | 2 +- test/js/samples/each-block-changed-check/expected.js | 2 +- test/js/samples/event-handlers-custom/expected-bundle.js | 2 +- test/js/samples/event-handlers-custom/expected.js | 2 +- .../samples/inline-style-optimized-multiple/expected-bundle.js | 2 +- test/js/samples/inline-style-optimized-multiple/expected.js | 2 +- test/js/samples/inline-style-optimized-url/expected-bundle.js | 2 +- test/js/samples/inline-style-optimized-url/expected.js | 2 +- test/js/samples/inline-style-optimized/expected-bundle.js | 2 +- test/js/samples/inline-style-optimized/expected.js | 2 +- test/js/samples/inline-style-unoptimized/expected-bundle.js | 2 +- test/js/samples/inline-style-unoptimized/expected.js | 2 +- test/js/samples/input-without-blowback-guard/expected-bundle.js | 2 +- test/js/samples/input-without-blowback-guard/expected.js | 2 +- test/js/samples/legacy-input-type/expected-bundle.js | 2 +- test/js/samples/legacy-input-type/expected.js | 2 +- test/js/samples/legacy-quote-class/expected-bundle.js | 2 +- test/js/samples/legacy-quote-class/expected.js | 2 +- test/js/samples/media-bindings/expected-bundle.js | 2 +- test/js/samples/media-bindings/expected.js | 2 +- 25 files changed, 25 insertions(+), 25 deletions(-) diff --git a/src/generators/dom/Block.ts b/src/generators/dom/Block.ts index c0fb7a2c4c39..91a92bbe0727 100644 --- a/src/generators/dom/Block.ts +++ b/src/generators/dom/Block.ts @@ -251,7 +251,7 @@ export default class Block { if (!this.builders.hydrate.isEmpty()) { properties.addBlock(deindent` - hydrate: function(nodes) { + hydrate: function() { ${this.builders.hydrate} }, `); diff --git a/test/js/samples/collapses-text-around-comments/expected-bundle.js b/test/js/samples/collapses-text-around-comments/expected-bundle.js index f144e884aaaf..dcc47255b307 100644 --- a/test/js/samples/collapses-text-around-comments/expected-bundle.js +++ b/test/js/samples/collapses-text-around-comments/expected-bundle.js @@ -220,7 +220,7 @@ function create_main_fragment(state, component) { this.hydrate(); }, - hydrate: function(nodes) { + hydrate: function() { encapsulateStyles(p); }, diff --git a/test/js/samples/collapses-text-around-comments/expected.js b/test/js/samples/collapses-text-around-comments/expected.js index 9e85f055956d..caa1bc886bd2 100644 --- a/test/js/samples/collapses-text-around-comments/expected.js +++ b/test/js/samples/collapses-text-around-comments/expected.js @@ -31,7 +31,7 @@ function create_main_fragment(state, component) { this.hydrate(); }, - hydrate: function(nodes) { + hydrate: function() { encapsulateStyles(p); }, diff --git a/test/js/samples/css-media-query/expected-bundle.js b/test/js/samples/css-media-query/expected-bundle.js index 8cc7e465d16f..82687004171d 100644 --- a/test/js/samples/css-media-query/expected-bundle.js +++ b/test/js/samples/css-media-query/expected-bundle.js @@ -207,7 +207,7 @@ function create_main_fragment(state, component) { this.hydrate(); }, - hydrate: function(nodes) { + hydrate: function() { encapsulateStyles(div); }, diff --git a/test/js/samples/css-media-query/expected.js b/test/js/samples/css-media-query/expected.js index 11d15505428a..a87dfb878dde 100644 --- a/test/js/samples/css-media-query/expected.js +++ b/test/js/samples/css-media-query/expected.js @@ -22,7 +22,7 @@ function create_main_fragment(state, component) { this.hydrate(); }, - hydrate: function(nodes) { + hydrate: function() { encapsulateStyles(div); }, diff --git a/test/js/samples/each-block-changed-check/expected-bundle.js b/test/js/samples/each-block-changed-check/expected-bundle.js index 5f73756b7771..1604c03c6a25 100644 --- a/test/js/samples/each-block-changed-check/expected-bundle.js +++ b/test/js/samples/each-block-changed-check/expected-bundle.js @@ -293,7 +293,7 @@ function create_each_block(state, each_block_value, comment, i, component) { this.hydrate(); }, - hydrate: function(nodes) { + hydrate: function() { div.className = "comment"; span.className = "meta"; }, diff --git a/test/js/samples/each-block-changed-check/expected.js b/test/js/samples/each-block-changed-check/expected.js index d69a80fcaf9d..e494471a5fa1 100644 --- a/test/js/samples/each-block-changed-check/expected.js +++ b/test/js/samples/each-block-changed-check/expected.js @@ -95,7 +95,7 @@ function create_each_block(state, each_block_value, comment, i, component) { this.hydrate(); }, - hydrate: function(nodes) { + hydrate: function() { div.className = "comment"; span.className = "meta"; }, diff --git a/test/js/samples/event-handlers-custom/expected-bundle.js b/test/js/samples/event-handlers-custom/expected-bundle.js index f77935729385..028e4718523a 100644 --- a/test/js/samples/event-handlers-custom/expected-bundle.js +++ b/test/js/samples/event-handlers-custom/expected-bundle.js @@ -212,7 +212,7 @@ function create_main_fragment(state, component) { this.hydrate(); }, - hydrate: function(nodes) { + hydrate: function() { foo_handler = template.events.foo.call(component, button, function(event) { var state = component.get(); component.foo( state.bar ); diff --git a/test/js/samples/event-handlers-custom/expected.js b/test/js/samples/event-handlers-custom/expected.js index eb6069e1d413..1891835aa10d 100644 --- a/test/js/samples/event-handlers-custom/expected.js +++ b/test/js/samples/event-handlers-custom/expected.js @@ -27,7 +27,7 @@ function create_main_fragment(state, component) { this.hydrate(); }, - hydrate: function(nodes) { + hydrate: function() { foo_handler = template.events.foo.call(component, button, function(event) { var state = component.get(); component.foo( state.bar ); diff --git a/test/js/samples/inline-style-optimized-multiple/expected-bundle.js b/test/js/samples/inline-style-optimized-multiple/expected-bundle.js index 15972de8dbca..3f794ba7acdd 100644 --- a/test/js/samples/inline-style-optimized-multiple/expected-bundle.js +++ b/test/js/samples/inline-style-optimized-multiple/expected-bundle.js @@ -192,7 +192,7 @@ function create_main_fragment(state, component) { this.hydrate(); }, - hydrate: function(nodes) { + hydrate: function() { setStyle(div, "color", state.color); setStyle(div, "transform", "translate(" + state.x + "px," + state.y + "px)"); }, diff --git a/test/js/samples/inline-style-optimized-multiple/expected.js b/test/js/samples/inline-style-optimized-multiple/expected.js index e246b7680851..45f2a50c2ac4 100644 --- a/test/js/samples/inline-style-optimized-multiple/expected.js +++ b/test/js/samples/inline-style-optimized-multiple/expected.js @@ -11,7 +11,7 @@ function create_main_fragment(state, component) { this.hydrate(); }, - hydrate: function(nodes) { + hydrate: function() { setStyle(div, "color", state.color); setStyle(div, "transform", "translate(" + state.x + "px," + state.y + "px)"); }, diff --git a/test/js/samples/inline-style-optimized-url/expected-bundle.js b/test/js/samples/inline-style-optimized-url/expected-bundle.js index b9fffb2f159d..18205758cc42 100644 --- a/test/js/samples/inline-style-optimized-url/expected-bundle.js +++ b/test/js/samples/inline-style-optimized-url/expected-bundle.js @@ -192,7 +192,7 @@ function create_main_fragment(state, component) { this.hydrate(); }, - hydrate: function(nodes) { + hydrate: function() { setStyle(div, "background", "url(data:image/png;base64," + state.data + ")"); }, diff --git a/test/js/samples/inline-style-optimized-url/expected.js b/test/js/samples/inline-style-optimized-url/expected.js index e979cefc37b1..9452de7328c4 100644 --- a/test/js/samples/inline-style-optimized-url/expected.js +++ b/test/js/samples/inline-style-optimized-url/expected.js @@ -11,7 +11,7 @@ function create_main_fragment(state, component) { this.hydrate(); }, - hydrate: function(nodes) { + hydrate: function() { setStyle(div, "background", "url(data:image/png;base64," + state.data + ")"); }, diff --git a/test/js/samples/inline-style-optimized/expected-bundle.js b/test/js/samples/inline-style-optimized/expected-bundle.js index 385aaa0c30ae..db5b7c8a2cbc 100644 --- a/test/js/samples/inline-style-optimized/expected-bundle.js +++ b/test/js/samples/inline-style-optimized/expected-bundle.js @@ -192,7 +192,7 @@ function create_main_fragment(state, component) { this.hydrate(); }, - hydrate: function(nodes) { + hydrate: function() { setStyle(div, "color", state.color); }, diff --git a/test/js/samples/inline-style-optimized/expected.js b/test/js/samples/inline-style-optimized/expected.js index 52542ce3bacd..bc4dc0eeda67 100644 --- a/test/js/samples/inline-style-optimized/expected.js +++ b/test/js/samples/inline-style-optimized/expected.js @@ -11,7 +11,7 @@ function create_main_fragment(state, component) { this.hydrate(); }, - hydrate: function(nodes) { + hydrate: function() { setStyle(div, "color", state.color); }, diff --git a/test/js/samples/inline-style-unoptimized/expected-bundle.js b/test/js/samples/inline-style-unoptimized/expected-bundle.js index f031e6c0e2f5..98235d257629 100644 --- a/test/js/samples/inline-style-unoptimized/expected-bundle.js +++ b/test/js/samples/inline-style-unoptimized/expected-bundle.js @@ -194,7 +194,7 @@ function create_main_fragment(state, component) { this.hydrate(); }, - hydrate: function(nodes) { + hydrate: function() { div.style.cssText = state.style; div_1.style.cssText = div_1_style_value = "" + state.key + ": " + state.value; }, diff --git a/test/js/samples/inline-style-unoptimized/expected.js b/test/js/samples/inline-style-unoptimized/expected.js index 081c497f9e83..c15408b3be86 100644 --- a/test/js/samples/inline-style-unoptimized/expected.js +++ b/test/js/samples/inline-style-unoptimized/expected.js @@ -13,7 +13,7 @@ function create_main_fragment(state, component) { this.hydrate(); }, - hydrate: function(nodes) { + hydrate: function() { div.style.cssText = state.style; div_1.style.cssText = div_1_style_value = "" + state.key + ": " + state.value; }, diff --git a/test/js/samples/input-without-blowback-guard/expected-bundle.js b/test/js/samples/input-without-blowback-guard/expected-bundle.js index 99ce19c0bf33..948cd943b1f5 100644 --- a/test/js/samples/input-without-blowback-guard/expected-bundle.js +++ b/test/js/samples/input-without-blowback-guard/expected-bundle.js @@ -200,7 +200,7 @@ function create_main_fragment(state, component) { this.hydrate(); }, - hydrate: function(nodes) { + hydrate: function() { input.type = "checkbox"; addListener(input, "change", input_change_handler); }, diff --git a/test/js/samples/input-without-blowback-guard/expected.js b/test/js/samples/input-without-blowback-guard/expected.js index e5f2d4ff21a3..86e92e2fc44f 100644 --- a/test/js/samples/input-without-blowback-guard/expected.js +++ b/test/js/samples/input-without-blowback-guard/expected.js @@ -15,7 +15,7 @@ function create_main_fragment(state, component) { this.hydrate(); }, - hydrate: function(nodes) { + hydrate: function() { input.type = "checkbox"; addListener(input, "change", input_change_handler); }, diff --git a/test/js/samples/legacy-input-type/expected-bundle.js b/test/js/samples/legacy-input-type/expected-bundle.js index 35a5253a267a..036c77f3c82d 100644 --- a/test/js/samples/legacy-input-type/expected-bundle.js +++ b/test/js/samples/legacy-input-type/expected-bundle.js @@ -194,7 +194,7 @@ function create_main_fragment(state, component) { this.hydrate(); }, - hydrate: function(nodes) { + hydrate: function() { setInputType(input, "search"); }, diff --git a/test/js/samples/legacy-input-type/expected.js b/test/js/samples/legacy-input-type/expected.js index ccd0bc4a5ff6..9a4d4782cd81 100644 --- a/test/js/samples/legacy-input-type/expected.js +++ b/test/js/samples/legacy-input-type/expected.js @@ -11,7 +11,7 @@ function create_main_fragment(state, component) { this.hydrate(); }, - hydrate: function(nodes) { + hydrate: function() { setInputType(input, "search"); }, diff --git a/test/js/samples/legacy-quote-class/expected-bundle.js b/test/js/samples/legacy-quote-class/expected-bundle.js index a3edb24252c2..552f1c22bc7b 100644 --- a/test/js/samples/legacy-quote-class/expected-bundle.js +++ b/test/js/samples/legacy-quote-class/expected-bundle.js @@ -219,7 +219,7 @@ function create_main_fragment(state, component) { this.hydrate(); }, - hydrate: function(nodes) { + hydrate: function() { div.className = "foo"; }, diff --git a/test/js/samples/legacy-quote-class/expected.js b/test/js/samples/legacy-quote-class/expected.js index 984e7e7c6d61..93121a357ada 100644 --- a/test/js/samples/legacy-quote-class/expected.js +++ b/test/js/samples/legacy-quote-class/expected.js @@ -19,7 +19,7 @@ function create_main_fragment(state, component) { this.hydrate(); }, - hydrate: function(nodes) { + hydrate: function() { div.className = "foo"; }, diff --git a/test/js/samples/media-bindings/expected-bundle.js b/test/js/samples/media-bindings/expected-bundle.js index 08e8a09d7c13..7ed611bf3543 100644 --- a/test/js/samples/media-bindings/expected-bundle.js +++ b/test/js/samples/media-bindings/expected-bundle.js @@ -243,7 +243,7 @@ function create_main_fragment(state, component) { this.hydrate(); }, - hydrate: function(nodes) { + hydrate: function() { component._root._beforecreate.push(audio_progress_loadedmetadata_handler); addListener(audio, "progress", audio_progress_loadedmetadata_handler); diff --git a/test/js/samples/media-bindings/expected.js b/test/js/samples/media-bindings/expected.js index 05ab3147c3e4..5e67ebfb1fa6 100644 --- a/test/js/samples/media-bindings/expected.js +++ b/test/js/samples/media-bindings/expected.js @@ -50,7 +50,7 @@ function create_main_fragment(state, component) { this.hydrate(); }, - hydrate: function(nodes) { + hydrate: function() { component._root._beforecreate.push(audio_progress_loadedmetadata_handler); addListener(audio, "progress", audio_progress_loadedmetadata_handler);