From 760f021981a78c345e323fd0d81f0ab3fe3f21c4 Mon Sep 17 00:00:00 2001 From: Sergey Generalov Date: Tue, 29 Jul 2014 21:31:12 -0700 Subject: [PATCH] [fixed] infinite loop in RouteStore.unregisterRoute closes #148 --- 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); }); },