@@ -159,7 +159,6 @@ module.exports = Link;
159
159
} , { "../helpers/makeHref" :7 , "../helpers/transitionTo" :11 , "../helpers/withoutProperties" :12 , "../mixins/ActiveState" :14 } ] , 3 :[ function ( _dereq_ , module , exports ) {
160
160
var React = ( typeof window !== "undefined" ? window . React : typeof global !== "undefined" ? global . React : null ) ;
161
161
var warning = _dereq_ ( 'react/lib/warning' ) ;
162
- var invariant = _dereq_ ( 'react/lib/invariant' ) ;
163
162
var ExecutionEnvironment = _dereq_ ( 'react/lib/ExecutionEnvironment' ) ;
164
163
var mergeProperties = _dereq_ ( '../helpers/mergeProperties' ) ;
165
164
var goBack = _dereq_ ( '../helpers/goBack' ) ;
@@ -193,7 +192,7 @@ var REF_NAME = '__activeRoute__';
193
192
/**
194
193
* <Route> components specify components that are rendered to the page when the
195
194
* URL matches a given pattern.
196
- *
195
+ *
197
196
* Routes are arranged in a nested tree structure. When a new URL is requested,
198
197
* the tree is searched depth-first to find a route whose path matches the URL.
199
198
* When one is found, all routes in the tree that lead to it are considered
@@ -276,7 +275,7 @@ var Route = React.createClass({
276
275
location : React . PropTypes . oneOf ( [ 'hash' , 'history' ] ) . isRequired ,
277
276
handler : React . PropTypes . any . isRequired ,
278
277
path : React . PropTypes . string ,
279
- name : React . PropTypes . string ,
278
+ name : React . PropTypes . string
280
279
} ,
281
280
282
281
getDefaultProps : function ( ) {
@@ -424,6 +423,7 @@ function Redirect(to, params, query) {
424
423
425
424
function findMatches ( path , route ) {
426
425
var children = route . props . children , matches ;
426
+ var params ;
427
427
428
428
// Check the subtree first to find the most deeply-nested match.
429
429
if ( Array . isArray ( children ) ) {
@@ -436,7 +436,7 @@ function findMatches(path, route) {
436
436
437
437
if ( matches ) {
438
438
var rootParams = getRootMatch ( matches ) . params ;
439
- var params = { } ;
439
+ params = { } ;
440
440
441
441
Path . extractParamNames ( route . props . path ) . forEach ( function ( paramName ) {
442
442
params [ paramName ] = rootParams [ paramName ] ;
@@ -448,7 +448,7 @@ function findMatches(path, route) {
448
448
}
449
449
450
450
// No routes in the subtree matched, so check this route.
451
- var params = Path . extractParams ( route . props . path , path ) ;
451
+ params = Path . extractParams ( route . props . path , path ) ;
452
452
453
453
if ( params )
454
454
return [ makeMatch ( route , params ) ] ;
@@ -644,7 +644,7 @@ function reversedArray(array) {
644
644
645
645
module . exports = Route ;
646
646
647
- } , { "../helpers/Path" :4 , "../helpers/goBack" :6 , "../helpers/mergeProperties" :9 , "../helpers/replaceWith" :10 , "../helpers/transitionTo" :11 , "../helpers/withoutProperties" :12 , "../stores/ActiveStore" :15 , "../stores/RouteStore" :16 , "../stores/URLStore" :17 , "es6-promise" :21 , "react/lib/ExecutionEnvironment" :46 , "react/lib/invariant" : 49 , "react/lib/ warning" :50 } ] , 4 :[ function ( _dereq_ , module , exports ) {
647
+ } , { "../helpers/Path" :4 , "../helpers/goBack" :6 , "../helpers/mergeProperties" :9 , "../helpers/replaceWith" :10 , "../helpers/transitionTo" :11 , "../helpers/withoutProperties" :12 , "../stores/ActiveStore" :15 , "../stores/RouteStore" :16 , "../stores/URLStore" :17 , "es6-promise" :21 , "react/lib/ExecutionEnvironment" :46 , "react/lib/warning" :50 } ] , 4 :[ function ( _dereq_ , module , exports ) {
648
648
var invariant = _dereq_ ( 'react/lib/invariant' ) ;
649
649
var qs = _dereq_ ( 'querystring' ) ;
650
650
var mergeProperties = _dereq_ ( './mergeProperties' ) ;
0 commit comments