pull/1557/head
Pavel Malyshev 7 years ago
parent 17000e38f6
commit f1fc81a49f

@ -67,12 +67,12 @@ export default class EventHandler extends Node {
compiler.code.overwrite(
this.insertionPoint,
this.insertionPoint + 1,
`${component}.store.`
`return ${component}.store.`
);
} else {
compiler.code.prependRight(
this.insertionPoint,
`${component}.`
`return ${component}.`
);
}
}

@ -146,7 +146,7 @@ function create_main_fragment(component, ctx) {
button = createElement("button");
button.textContent = "foo";
foo_handler = foo.call(component, button, function(event) {
component.foo( ctx.bar );
return component.foo( ctx.bar );
});
},

@ -19,7 +19,7 @@ function create_main_fragment(component, ctx) {
button = createElement("button");
button.textContent = "foo";
foo_handler = foo.call(component, button, function(event) {
component.foo( ctx.bar );
return component.foo( ctx.bar );
});
},

Loading…
Cancel
Save