From 6ca5fc5cb41aa31ae58c2936a0a2075b99b227a3 Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Wed, 1 Apr 2015 14:46:55 +0800 Subject: [PATCH] Cleanup of accessor logic in boundAxis. --- src/Layout.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Layout.js b/src/Layout.js index 86978855..69d06b31 100755 --- a/src/Layout.js +++ b/src/Layout.js @@ -204,13 +204,13 @@ var computeLayout = (function() { function boundAxis(node, axis, value) { var min = { - row: node.style['minWidth'], - column: node.style['minHeight'] + row: node.style.minWidth, + column: node.style.minHeight }[axis]; var max = { - row: node.style['maxWidth'], - column: node.style['maxHeight'] + row: node.style.maxWidth, + column: node.style.maxHeight }[axis]; var boundValue = value;