fix(change detect): Fix bug in JIT change detectors

Fix the "ifChangedGuard" code in the JIT change detector which was
incorrectly refactored in a2770c8a52.
This commit is contained in:
Tim Blasi 2015-06-12 16:32:21 -07:00
parent 8e3bf3907a
commit e0fbd4b624
1 changed files with 1 additions and 1 deletions

View File

@ -285,7 +285,7 @@ export class ChangeDetectorJITGenerator {
`; `;
if (r.isPureFunction()) { if (r.isPureFunction()) {
var condition = `${this._changeNames.join(" || ")}`; var condition = r.args.map((a) => this._changeNames[a]).join(" || ");
return `if (${condition}) { ${check} }`; return `if (${condition}) { ${check} }`;
} else { } else {
return check; return check;