From ca40ef5ac7a28a0d0f7702cc76361f140b93b7d3 Mon Sep 17 00:00:00 2001 From: Alex Eagle Date: Wed, 27 Apr 2016 17:54:06 -0700 Subject: [PATCH] fix(codegen): event handler has boolean return type --- modules/angular2/src/compiler/view_compiler/event_binder.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/angular2/src/compiler/view_compiler/event_binder.ts b/modules/angular2/src/compiler/view_compiler/event_binder.ts index dd04020467..4846ef18f6 100644 --- a/modules/angular2/src/compiler/view_compiler/event_binder.ts +++ b/modules/angular2/src/compiler/view_compiler/event_binder.ts @@ -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, '_'); -} \ No newline at end of file +}