Skip to content

Commit f61036d

Browse files
committed
Better argument name
1 parent 0bb04d1 commit f61036d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

modules/components/Routes.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -254,12 +254,12 @@ function updateMatchComponents(matches, refs) {
254254
* callback(error, nextState) when finished. Also runs all transition
255255
* hooks along the way.
256256
*/
257-
function computeNextState(routes, transition, callback) {
258-
if (routes.state.path === transition.path)
257+
function computeNextState(component, transition, callback) {
258+
if (component.state.path === transition.path)
259259
return callback(); // Nothing to do!
260260

261-
var currentMatches = routes.state.matches;
262-
var nextMatches = routes.match(transition.path);
261+
var currentMatches = component.state.matches;
262+
var nextMatches = component.match(transition.path);
263263

264264
warning(
265265
nextMatches,
@@ -272,7 +272,7 @@ function computeNextState(routes, transition, callback) {
272272

273273
var fromMatches, toMatches;
274274
if (currentMatches.length) {
275-
updateMatchComponents(currentMatches, routes.refs);
275+
updateMatchComponents(currentMatches, component.refs);
276276

277277
fromMatches = currentMatches.filter(function (match) {
278278
return !hasMatch(nextMatches, match);

0 commit comments

Comments
 (0)