Skip to content

Commit

Permalink
[fixed] potential infinite loop during transitions
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanflorence committed Oct 10, 2014
1 parent 82eeb70 commit d47d7dd
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions modules/components/Routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,10 @@ function runHooks(hooks, callback) {
}

function updateMatchComponents(matches, refs) {
var i = 0, component;
while (component = refs.__activeRoute__) {
matches[i++].component = component;
refs = component.refs;
}
matches.forEach(function (match) {
match.component = refs.__activeRoute__;
refs = match.component.refs;
});
}

function returnNull() {
Expand Down

0 comments on commit d47d7dd

Please sign in to comment.