Null-guard RR logic
This commit is contained in:
parent
3718bc399f
commit
66525f6826
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ module.exports = React.createClass({
|
||||||
});
|
});
|
||||||
//console.log("translation: "+oldNode.style.left+" -> "+c.props.style.left);
|
//console.log("translation: "+oldNode.style.left+" -> "+c.props.style.left);
|
||||||
}
|
}
|
||||||
if (oldNode.style.visibility == 'hidden' && c.props.style.visibility == 'visible') {
|
if (oldNode && oldNode.style.visibility == 'hidden' && c.props.style.visibility == 'visible') {
|
||||||
oldNode.style.visibility = c.props.style.visibility;
|
oldNode.style.visibility = c.props.style.visibility;
|
||||||
}
|
}
|
||||||
self.children[c.key] = old;
|
self.children[c.key] = old;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue