@@ -356,6 +356,7 @@ function update(node, curr, next) {
356function updateProps(node, curr, next) {
356function updateProps(node, curr, next) {
357 var nextProps = next.props;
357 var nextProps = next.props;
358 var currProps = curr.props;
358 var currProps = curr.props;
359 var element = next.element;
360 var element = next.element;
360 var width = nextProps.width - (element.adjustWidth || 0);
361 var width = nextProps.width - (element.adjustWidth || 0);
361 var height = nextProps.height - (element.adjustHeight || 0);
362 var height = nextProps.height - (element.adjustHeight || 0);
@@ -365,15 +366,22 @@ function updateProps(node, curr, next) {
365 if (height !== currProps.height) {
366 if (height !== currProps.height) {
366 node.style.height = (height|0) + 'px';
367 node.style.height = (height|0) + 'px';
368 if (nextProps.opacity !== currProps.opacity) {
370 if (nextProps.opacity !== currProps.opacity) {
369 node.style.opacity = nextProps.opacity;
371 node.style.opacity = nextProps.opacity;
371− var nextColor = (nextProps.color.ctor === 'Just' ?
374+ var nextColor = nextProps.color.ctor === 'Just'
372− colorToCss(nextProps.color._0) : '');
375+ ? colorToCss(nextProps.color._0)
373 if (node.style.backgroundColor !== nextColor) {
377 if (node.style.backgroundColor !== nextColor) {
374 node.style.backgroundColor = (nextColor === '' ? 'transparent' : nextColor);
378 node.style.backgroundColor = (nextColor === '' ? 'transparent' : nextColor);
376− if (nextProps.tag !== currProps.tag) { node.id = nextProps.tag; }
381+ if (nextProps.tag !== currProps.tag) {
382+ node.id = nextProps.tag;
377 if (nextProps.href !== currProps.href) {
385 if (nextProps.href !== currProps.href) {
378 if (currProps.href === '') {
386 if (currProps.href === '') {
379 var a = newElement('a');
387 var a = newElement('a');