X Tutup
Skip to content

Commit e0fbd4b

Browse files
author
Tim Blasi
committed
fix(change detect): Fix bug in JIT change detectors
Fix the "ifChangedGuard" code in the JIT change detector which was incorrectly refactored in a2770c8.
1 parent 8e3bf39 commit e0fbd4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/angular2/src/change_detection/change_detection_jit_generator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ export class ChangeDetectorJITGenerator {
285285
`;
286286

287287
if (r.isPureFunction()) {
288-
var condition = `${this._changeNames.join(" || ")}`;
288+
var condition = r.args.map((a) => this._changeNames[a]).join(" || ");
289289
return `if (${condition}) { ${check} }`;
290290
} else {
291291
return check;

0 commit comments

Comments
 (0)
X Tutup