From 44c7ac0fe95cfc88de64c0915ede58bd06ef3334 Mon Sep 17 00:00:00 2001 From: Jack Sun Date: Thu, 11 May 2017 13:54:04 -0700 Subject: [PATCH] fix(upgrade): use quote to prevent ClossureCompiler obfuscating $event. (#16724) This is critical for AngularJS to get the $event object in template. --- packages/upgrade/src/common/downgrade_component_adapter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/upgrade/src/common/downgrade_component_adapter.ts b/packages/upgrade/src/common/downgrade_component_adapter.ts index 4e6aa21d29..ed7b29ff7c 100644 --- a/packages/upgrade/src/common/downgrade_component_adapter.ts +++ b/packages/upgrade/src/common/downgrade_component_adapter.ts @@ -165,7 +165,7 @@ export class DowngradeComponentAdapter { next: assignExpr ? ((setter: any) => (v: any /** TODO #9100 */) => setter(this.scope, v))(setter) : ((getter: any) => (v: any /** TODO #9100 */) => - getter(this.scope, {$event: v}))(getter) + getter(this.scope, {'$event': v}))(getter) }); } else { throw new Error(