Skip to content

Commit

Permalink
Merge pull request #330 from gaearon/remove-preserveScrollPosition
Browse files Browse the repository at this point in the history
Remove remaining preserveScrollPosition definitions
  • Loading branch information
mjackson committed Oct 3, 2014
2 parents 4e90bbe + da8e0e5 commit 64739e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
7 changes: 0 additions & 7 deletions modules/components/Route.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,17 +78,10 @@ var Route = React.createClass({

propTypes: {
handler: React.PropTypes.any.isRequired,
preserveScrollPosition: React.PropTypes.bool.isRequired,
path: React.PropTypes.string,
name: React.PropTypes.string
},

getDefaultProps: function () {
return {
preserveScrollPosition: false
};
},

render: function () {
throw new Error(
'The <Route> component should not be rendered directly. You may be ' +
Expand Down
6 changes: 2 additions & 4 deletions modules/components/Routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,13 @@ var Routes = React.createClass({

propTypes: {
onAbortedTransition: React.PropTypes.func.isRequired,
onTransitionError: React.PropTypes.func.isRequired,
preserveScrollPosition: React.PropTypes.bool
onTransitionError: React.PropTypes.func.isRequired
},

getDefaultProps: function () {
return {
onAbortedTransition: defaultAbortedTransitionHandler,
onTransitionError: defaultTransitionErrorHandler,
preserveScrollPosition: false
onTransitionError: defaultTransitionErrorHandler
};
},

Expand Down

0 comments on commit 64739e4

Please sign in to comment.