Actually fix transitioning to null

Test Plan: grunt fasttest
This commit is contained in:
Ben Alpert
2014-04-28 22:16:59 -03:00
parent b9e215d169
commit 4b51708ed2
@@ -119,7 +119,7 @@ var ReactTransitionGroup = React.createClass({
this.props.children
);
if (!currentChildMapping.hasOwnProperty(key)) {
if (!currentChildMapping || !currentChildMapping.hasOwnProperty(key)) {
// This was removed before it had fully entered. Remove it.
this.performLeave(key);
}
@@ -152,7 +152,7 @@ var ReactTransitionGroup = React.createClass({
this.props.children
);
if (currentChildMapping.hasOwnProperty(key)) {
if (currentChildMapping && currentChildMapping.hasOwnProperty(key)) {
// This entered again before it fully left. Add it again.
this.performEnter(key);
} else {