component event shorthand

pull/7738/head
Rich Harris 8 years ago
parent e54757a620
commit d9fd64d731

@ -450,7 +450,7 @@ export default class Component extends Node {
${this.handlers.map(handler => deindent`
${name}.on("${handler.name}", function(event) {
${handler.snippet}
${handler.snippet || `#component.fire("${handler.name}", event);`}
});
`)}

Loading…
Cancel
Save