fix(core): make dynamic & inline code checking behave the same (#19189)

PR Close #19189
This commit is contained in:
Victor Berchet 2017-09-13 14:59:09 -07:00 committed by Igor Minar
parent b14c2d1568
commit 473a577e34
1 changed files with 0 additions and 10 deletions

View File

@ -440,16 +440,6 @@ function checkAndUpdateNodeDynamic(view: ViewData, nodeDef: NodeDef, values: any
changed = checkAndUpdatePureExpressionDynamic(view, nodeDef, values);
break;
}
if (changed) {
// Update oldValues after all bindings have been updated,
// as a setter for a property might update other properties.
const bindLen = nodeDef.bindings.length;
const bindingStart = nodeDef.bindingIndex;
const oldValues = view.oldValues;
for (let i = 0; i < bindLen; i++) {
oldValues[bindingStart + i] = values[i];
}
}
return changed;
}