File tree Expand file tree Collapse file tree 2 files changed +2
-11
lines changed Expand file tree Collapse file tree 2 files changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -78,17 +78,10 @@ var Route = React.createClass({
78
78
79
79
propTypes : {
80
80
handler : React . PropTypes . any . isRequired ,
81
- preserveScrollPosition : React . PropTypes . bool . isRequired ,
82
81
path : React . PropTypes . string ,
83
82
name : React . PropTypes . string
84
83
} ,
85
84
86
- getDefaultProps : function ( ) {
87
- return {
88
- preserveScrollPosition : false
89
- } ;
90
- } ,
91
-
92
85
render : function ( ) {
93
86
throw new Error (
94
87
'The <Route> component should not be rendered directly. You may be ' +
Original file line number Diff line number Diff line change @@ -73,15 +73,13 @@ var Routes = React.createClass({
73
73
74
74
propTypes : {
75
75
onAbortedTransition : React . PropTypes . func . isRequired ,
76
- onTransitionError : React . PropTypes . func . isRequired ,
77
- preserveScrollPosition : React . PropTypes . bool
76
+ onTransitionError : React . PropTypes . func . isRequired
78
77
} ,
79
78
80
79
getDefaultProps : function ( ) {
81
80
return {
82
81
onAbortedTransition : defaultAbortedTransitionHandler ,
83
- onTransitionError : defaultTransitionErrorHandler ,
84
- preserveScrollPosition : false
82
+ onTransitionError : defaultTransitionErrorHandler
85
83
} ;
86
84
} ,
87
85
You can’t perform that action at this time.
0 commit comments