@@ -356,25 +356,24 @@ function update(node, curr, next) {
356function updateProps(node, curr, next) {
356function updateProps(node, curr, next) {
357 var props = next.props;
357 var props = next.props;
358 var currP = curr.props;
358 var currP = curr.props;
360 var element = next.element;
359 var element = next.element;
361 var width = props.width - (element.adjustWidth || 0);
360 var width = props.width - (element.adjustWidth || 0);
362 var height = props.height - (element.adjustHeight || 0);
361 var height = props.height - (element.adjustHeight || 0);
363 if (width !== currP.width) {
362 if (width !== currP.width) {
364− e.style.width = (width|0) + 'px';
363+ node.style.width = (width|0) + 'px';
366 if (height !== currP.height) {
365 if (height !== currP.height) {
367− e.style.height = (height|0) + 'px';
366+ node.style.height = (height|0) + 'px';
369 if (props.opacity !== currP.opacity) {
368 if (props.opacity !== currP.opacity) {
370− e.style.opacity = props.opacity;
369+ node.style.opacity = props.opacity;
372 var nextColor = (props.color.ctor === 'Just' ?
371 var nextColor = (props.color.ctor === 'Just' ?
373 colorToCss(props.color._0) : '');
372 colorToCss(props.color._0) : '');
374− if (e.style.backgroundColor !== nextColor) {
373+ if (node.style.backgroundColor !== nextColor) {
375− e.style.backgroundColor = (nextColor === '' ? 'transparent' : nextColor);
374+ node.style.backgroundColor = (nextColor === '' ? 'transparent' : nextColor);
377− if (props.tag !== currP.tag) { e.id = props.tag; }
376+ if (props.tag !== currP.tag) { node.id = props.tag; }
378 if (props.href !== currP.href) {
377 if (props.href !== currP.href) {
379 if (currP.href === '') {
378 if (currP.href === '') {
380 var a = newElement('a');
379 var a = newElement('a');
@@ -385,9 +384,9 @@ function updateProps(node, curr, next) {
385 a.style.left = 0;
384 a.style.left = 0;
386 a.style.display = 'block';
385 a.style.display = 'block';
387 a.style.position = 'absolute';
386 a.style.position = 'absolute';
388− e.style.position = 'relative';
387+ node.style.position = 'relative';
389 a.style.pointerEvents = 'auto';
388 a.style.pointerEvents = 'auto';
390− e.appendChild(a);
389+ node.appendChild(a);
392 node.lastNode.href = props.href;
391 node.lastNode.href = props.href;
@@ -395,20 +394,20 @@ function updateProps(node, curr, next) {
396 // update hover handlers
395 // update hover handlers
397 if (props.hover.ctor === '_Tuple0') {
396 if (props.hover.ctor === '_Tuple0') {
398− removeHover(e);
397+ removeHover(node);
399− } else if (e.elm_hover_handler) {
398+ } else if (node.elm_hover_handler) {
400− e.elm_hover_handler = props.hover;
399+ node.elm_hover_handler = props.hover;
402− addHover(e, props.hover);
401+ addHover(node, props.hover);
405 // update click handlers
404 // update click handlers
406 if (props.click.ctor === '_Tuple0') {
405 if (props.click.ctor === '_Tuple0') {
407− removeClick(e);
406+ removeClick(node);
408− } else if (e.elm_click_handler) {
407+ } else if (node.elm_click_handler) {
409− e.elm_click_handler = props.click;
408+ node.elm_click_handler = props.click;
411− addClick(e, props.click);
410+ addClick(node, props.click);