fix(core): make dynamic & inline code checking behave the same (#19189)
PR Close #19189
This commit is contained in:
parent
8f668807cf
commit
6c66031c4a
@ -450,16 +450,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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user