From 221510cfcf7c7fc1d0e62bd900291612edbe5b1c Mon Sep 17 00:00:00 2001 From: Devon Govett Date: Sun, 4 Oct 2015 14:11:07 -0700 Subject: [PATCH] Fix nits --- src/Layout.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/Layout.js b/src/Layout.js index d5431c66..99552e6b 100755 --- a/src/Layout.js +++ b/src/Layout.js @@ -1128,9 +1128,10 @@ var computeLayout = (function() { node.lastLayout.requestedHeight !== node.layout.height || node.lastLayout.requestedWidth !== node.layout.width || node.lastLayout.parentMaxWidth !== parentMaxWidth) { - - if (!node.lastLayout) + + if (!node.lastLayout) { node.lastLayout = {}; + } node.lastLayout.requestedWidth = node.layout.width; node.lastLayout.requestedHeight = node.layout.height; @@ -1138,11 +1139,13 @@ var computeLayout = (function() { layoutNodeImpl(node, parentMaxWidth, parentDirection); - for (var key in node.layout) + for (var key in node.layout) { node.lastLayout[key] = node.layout[key]; + } } else { - for (var key in node.layout) + for (var key in node.layout) { node.layout[key] = node.lastLayout[key]; + } } }