From ce575e106502624cddd23ba1d8c0e565e51dcb20 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Fri, 22 Jun 2018 20:08:51 -0400 Subject: [PATCH] Revert "Fix for #1553" --- src/compile/nodes/EventHandler.ts | 4 ++-- test/js/samples/event-handlers-custom/expected-bundle.js | 2 +- test/js/samples/event-handlers-custom/expected.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/compile/nodes/EventHandler.ts b/src/compile/nodes/EventHandler.ts index 6c15de7efd..54dbd66157 100644 --- a/src/compile/nodes/EventHandler.ts +++ b/src/compile/nodes/EventHandler.ts @@ -67,12 +67,12 @@ export default class EventHandler extends Node { compiler.code.overwrite( this.insertionPoint, this.insertionPoint + 1, - `return ${component}.store.` + `${component}.store.` ); } else { compiler.code.prependRight( this.insertionPoint, - `return ${component}.` + `${component}.` ); } } diff --git a/test/js/samples/event-handlers-custom/expected-bundle.js b/test/js/samples/event-handlers-custom/expected-bundle.js index 501b2a9a3f..78d5d1a005 100644 --- a/test/js/samples/event-handlers-custom/expected-bundle.js +++ b/test/js/samples/event-handlers-custom/expected-bundle.js @@ -146,7 +146,7 @@ function create_main_fragment(component, ctx) { button = createElement("button"); button.textContent = "foo"; foo_handler = foo.call(component, button, function(event) { - return component.foo( ctx.bar ); + component.foo( ctx.bar ); }); }, diff --git a/test/js/samples/event-handlers-custom/expected.js b/test/js/samples/event-handlers-custom/expected.js index 855bea59ba..c72362620b 100644 --- a/test/js/samples/event-handlers-custom/expected.js +++ b/test/js/samples/event-handlers-custom/expected.js @@ -19,7 +19,7 @@ function create_main_fragment(component, ctx) { button = createElement("button"); button.textContent = "foo"; foo_handler = foo.call(component, button, function(event) { - return component.foo( ctx.bar ); + component.foo( ctx.bar ); }); },