From e0fbd4b624f24e8bcb23608457ba1203260a715b Mon Sep 17 00:00:00 2001 From: Tim Blasi Date: Fri, 12 Jun 2015 16:32:21 -0700 Subject: [PATCH] fix(change detect): Fix bug in JIT change detectors Fix the "ifChangedGuard" code in the JIT change detector which was incorrectly refactored in a2770c8a5259aacc64f21170a93b5124f55511b8. --- .../src/change_detection/change_detection_jit_generator.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/angular2/src/change_detection/change_detection_jit_generator.ts b/modules/angular2/src/change_detection/change_detection_jit_generator.ts index 0af7db046d..98f4876496 100644 --- a/modules/angular2/src/change_detection/change_detection_jit_generator.ts +++ b/modules/angular2/src/change_detection/change_detection_jit_generator.ts @@ -285,7 +285,7 @@ export class ChangeDetectorJITGenerator { `; if (r.isPureFunction()) { - var condition = `${this._changeNames.join(" || ")}`; + var condition = r.args.map((a) => this._changeNames[a]).join(" || "); return `if (${condition}) { ${check} }`; } else { return check;