Skip to content

Commit

Permalink
fix(change detect): Fix bug in JIT change detectors
Browse files Browse the repository at this point in the history
Fix the "ifChangedGuard" code in the JIT change detector which was
incorrectly refactored in a2770c8.
  • Loading branch information
Tim Blasi committed Jun 12, 2015
1 parent 8e3bf39 commit e0fbd4b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e0fbd4b

Please sign in to comment.