fix(upgrade): use quote to prevent ClossureCompiler obfuscating $event. (#16724)

This is critical for AngularJS to get the $event object in template.
This commit is contained in:
Jack Sun 2017-05-11 13:54:04 -07:00 committed by Jason Aden
parent abb36e3cba
commit 44c7ac0fe9
1 changed files with 1 additions and 1 deletions

View File

@ -165,7 +165,7 @@ export class DowngradeComponentAdapter {
next: assignExpr ? next: assignExpr ?
((setter: any) => (v: any /** TODO #9100 */) => setter(this.scope, v))(setter) : ((setter: any) => (v: any /** TODO #9100 */) => setter(this.scope, v))(setter) :
((getter: any) => (v: any /** TODO #9100 */) => ((getter: any) => (v: any /** TODO #9100 */) =>
getter(this.scope, {$event: v}))(getter) getter(this.scope, {'$event': v}))(getter)
}); });
} else { } else {
throw new Error( throw new Error(