Skip to content

Commit

Permalink
Actually fix transitioning to null
Browse files Browse the repository at this point in the history
Test Plan: grunt fasttest
  • Loading branch information
sophiebits committed Apr 29, 2014
1 parent b9e215d commit 4b51708
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/addons/transitions/ReactTransitionGroup.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 4b51708

Please sign in to comment.