From 473a577e341357c8cc6467f6582dcb9c3a51bfea Mon Sep 17 00:00:00 2001 From: Victor Berchet Date: Wed, 13 Sep 2017 14:59:09 -0700 Subject: [PATCH] fix(core): make dynamic & inline code checking behave the same (#19189) PR Close #19189 --- packages/core/src/view/view.ts | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/packages/core/src/view/view.ts b/packages/core/src/view/view.ts index fc14227773..ebb94ac62a 100644 --- a/packages/core/src/view/view.ts +++ b/packages/core/src/view/view.ts @@ -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; }