File tree Expand file tree Collapse file tree 3 files changed +2
-36
lines changed Expand file tree Collapse file tree 3 files changed +2
-36
lines changed Original file line number Diff line number Diff line change 1
1
var React = require ( 'react' ) ;
2
- var withoutProperties = require ( '../utils/withoutProperties' ) ;
3
-
4
- /**
5
- * A map of <Route> component props that are reserved for use by the
6
- * router and/or React. All other props are considered "static" and
7
- * are passed through to the route handler.
8
- */
9
- var RESERVED_PROPS = {
10
- handler : true ,
11
- path : true ,
12
- defaultRoute : true ,
13
- notFoundRoute : true ,
14
- paramNames : true ,
15
- children : true // ReactChildren
16
- } ;
17
2
18
3
/**
19
4
* <Route> components specify components that are rendered to the page when the
@@ -64,16 +49,9 @@ var Route = React.createClass({
64
49
65
50
displayName : 'Route' ,
66
51
67
- statics : {
68
-
69
- getUnreservedProps : function ( props ) {
70
- return withoutProperties ( props , RESERVED_PROPS ) ;
71
- }
72
-
73
- } ,
74
-
75
52
propTypes : {
76
53
handler : React . PropTypes . any . isRequired ,
54
+ getAsyncProps : React . PropTypes . func ,
77
55
path : React . PropTypes . string ,
78
56
name : React . PropTypes . string
79
57
} ,
Original file line number Diff line number Diff line change @@ -387,7 +387,7 @@ var Routes = React.createClass({
387
387
reversedArray ( matches ) . forEach ( function ( match ) {
388
388
var route = match . route ;
389
389
390
- props = Route . getUnreservedProps ( route . props ) ;
390
+ props = { } ;
391
391
392
392
props . ref = '__activeRoute__' ;
393
393
props . params = match . params ;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments