From 14dee6310e9545ff2e6525620b82b3e18c60449b Mon Sep 17 00:00:00 2001 From: Sergey Generalov Date: Tue, 29 Jul 2014 21:31:12 -0700 Subject: [PATCH] Fix infinite loop in RouteStore.unregisterRoute method --- modules/stores/RouteStore.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/stores/RouteStore.js b/modules/stores/RouteStore.js index 48cf6c7c11..16ba3105a8 100644 --- a/modules/stores/RouteStore.js +++ b/modules/stores/RouteStore.js @@ -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); }); },