fix(ChangeDetection): chain expressions evaluate to the last expression (codegen)

fixes #4782
Closes #5892
This commit is contained in:
Victor Berchet
2015-12-14 20:02:40 -08:00
parent 8c37b7e8f2
commit 933a9112da
3 changed files with 6 additions and 1 deletions

View File

@ -103,7 +103,7 @@ export class CodegenLogicUtil {
break;
case RecordType.Chain:
rhs = 'null';
rhs = `${getLocalName(protoRec.args[protoRec.args.length - 1])}`;
break;
default: