fix(codegen): event handler has boolean return type

This commit is contained in:
Alex Eagle 2016-04-27 17:54:06 -07:00
parent 7c0d4976b1
commit ca40ef5ac7
1 changed files with 2 additions and 2 deletions

View File

@ -87,7 +87,7 @@ export class CompileEventListener {
[
new o.ReturnStatement(
o.THIS_EXPR.callMethod(this._methodName, [EventHandlerVars.event]))
])
], o.BOOL_TYPE)
]);
if (isPresent(this.eventTarget)) {
listenExpr = ViewProperties.renderer.callMethod(
@ -162,4 +162,4 @@ function convertStmtIntoExpression(stmt: o.Statement): o.Expression {
function santitizeEventName(name: string): string {
return StringWrapper.replaceAll(name, /[^a-zA-Z_]/g, '_');
}
}