File tree Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,6 @@ Redirect.propTypes = {
20
20
} ;
21
21
22
22
// Redirects should not have a default handler
23
- Redirect . defaultProps = { }
23
+ Redirect . defaultProps = { } ;
24
24
25
25
module . exports = Redirect ;
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ class RouteHandler extends React.Component {
12
12
13
13
getChildContext ( ) {
14
14
return {
15
- depth : this . context . depth + 1
15
+ routeDepth : this . context . routeDepth + 1
16
16
} ;
17
17
}
18
18
@@ -33,7 +33,7 @@ class RouteHandler extends React.Component {
33
33
}
34
34
35
35
getRouteDepth ( ) {
36
- return this . context . depth ;
36
+ return this . context . routeDepth ;
37
37
}
38
38
39
39
createChildRouteHandler ( props ) {
@@ -55,12 +55,12 @@ class RouteHandler extends React.Component {
55
55
// https://github.com/babel/babel/issues/619
56
56
57
57
RouteHandler . contextTypes = {
58
- depth : PropTypes . number . isRequired ,
58
+ routeDepth : PropTypes . number . isRequired ,
59
59
router : PropTypes . router . isRequired
60
60
} ;
61
61
62
62
RouteHandler . childContextTypes = {
63
- depth : PropTypes . number . isRequired
63
+ routeDepth : PropTypes . number . isRequired
64
64
} ;
65
65
66
66
module . exports = RouteHandler ;
Original file line number Diff line number Diff line change @@ -453,13 +453,13 @@ function createRouter(options) {
453
453
return scrollBehavior ;
454
454
} ,
455
455
456
- getRouteAtDepth : function ( depth ) {
456
+ getRouteAtDepth : function ( routeDepth ) {
457
457
var routes = state . routes ;
458
- return routes && routes [ depth ] ;
458
+ return routes && routes [ routeDepth ] ;
459
459
} ,
460
460
461
- setRouteComponentAtDepth : function ( depth , component ) {
462
- mountedComponents [ depth ] = component ;
461
+ setRouteComponentAtDepth : function ( routeDepth , component ) {
462
+ mountedComponents [ routeDepth ] = component ;
463
463
} ,
464
464
465
465
/**
@@ -518,13 +518,13 @@ function createRouter(options) {
518
518
} ,
519
519
520
520
childContextTypes : {
521
- depth : PropTypes . number . isRequired ,
521
+ routeDepth : PropTypes . number . isRequired ,
522
522
router : PropTypes . router . isRequired
523
523
} ,
524
524
525
525
getChildContext : function ( ) {
526
526
return {
527
- depth : 1 ,
527
+ routeDepth : 1 ,
528
528
router : Router
529
529
} ;
530
530
} ,
You can’t perform that action at this time.
0 commit comments