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:
parent
8e3bf3907a
commit
e0fbd4b624
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue