From 3252a15c81f96bd5d30597732377059a9eef0f1c Mon Sep 17 00:00:00 2001 From: Aruna Herath Date: Wed, 22 Jun 2016 10:44:09 +0530 Subject: [PATCH] Update dist with changes in #13 --- dist/components/Node.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/dist/components/Node.js b/dist/components/Node.js index 30d9b20d010f..299f406b9642 100644 --- a/dist/components/Node.js +++ b/dist/components/Node.js @@ -110,13 +110,16 @@ var Node = function (_React$Component) { ); } + // Keep a copy so that further mutations to containerStyle don't impact us: + var containerStyleCopy = (0, _assign2.default)({}, containerStyle); + // tag with children return _react2.default.createElement( 'div', null, _react2.default.createElement( 'div', - { style: containerStyle }, + { style: containerStyleCopy }, _react2.default.createElement( 'span', { style: tagStyle }, @@ -135,7 +138,7 @@ var Node = function (_React$Component) { }), _react2.default.createElement( 'div', - { style: containerStyle }, + { style: containerStyleCopy }, _react2.default.createElement( 'span', { style: tagStyle },