Skip to content

Commit

Permalink
[fixed] infinite loop in RouteStore.unregisterRoute
Browse files Browse the repository at this point in the history
closes #148
  • Loading branch information
genbit authored and ryanflorence committed Jul 30, 2014
1 parent 5df5441 commit 760f021
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/stores/RouteStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ var RouteStore = {
delete _namedRoutes[route.props.name];

React.Children.forEach(route.props.children, function (child) {
RouteStore.unregisterRoute(route);
RouteStore.unregisterRoute(child);
});
},

Expand Down

0 comments on commit 760f021

Please sign in to comment.