Skip to content
This repository has been archived by the owner on May 23, 2018. It is now read-only.

Commit

Permalink
fix: use of routeOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
troch committed Jul 8, 2015
1 parent efe3fbc commit 618157b
Showing 5 changed files with 5 additions and 9 deletions.
3 changes: 1 addition & 2 deletions dist/amd/link-factory.js
Original file line number Diff line number Diff line change
@@ -20,7 +20,6 @@ define(['exports', 'module', 'react'], function (exports, module, _react) {

getDefaultProps: function getDefaultProps() {
return {
className: '',
activeClassName: 'active',
activeStrict: false,
routeParams: {},
@@ -44,7 +43,7 @@ define(['exports', 'module', 'react'], function (exports, module, _react) {

clickHandler: function clickHandler(evt) {
evt.preventDefault();
router.navigate(this.props.routeName, this.props.routeParams, this.props.options);
router.navigate(this.props.routeName, this.props.routeParams, this.props.routeOptions);
},

// Is it overkill?
3 changes: 1 addition & 2 deletions dist/browser/router5-react.js
Original file line number Diff line number Diff line change
@@ -38,7 +38,6 @@ function linkFactory(router) {

getDefaultProps: function getDefaultProps() {
return {
className: '',
activeClassName: 'active',
activeStrict: false,
routeParams: {},
@@ -62,7 +61,7 @@ function linkFactory(router) {

clickHandler: function clickHandler(evt) {
evt.preventDefault();
router.navigate(this.props.routeName, this.props.routeParams, this.props.options);
router.navigate(this.props.routeName, this.props.routeParams, this.props.routeOptions);
},

// Is it overkill?
2 changes: 1 addition & 1 deletion dist/browser/router5-react.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions dist/commonjs/link-factory.js
Original file line number Diff line number Diff line change
@@ -25,7 +25,6 @@ function linkFactory(router) {

getDefaultProps: function getDefaultProps() {
return {
className: '',
activeClassName: 'active',
activeStrict: false,
routeParams: {},
@@ -49,7 +48,7 @@ function linkFactory(router) {

clickHandler: function clickHandler(evt) {
evt.preventDefault();
router.navigate(this.props.routeName, this.props.routeParams, this.props.options);
router.navigate(this.props.routeName, this.props.routeParams, this.props.routeOptions);
},

// Is it overkill?
3 changes: 1 addition & 2 deletions modules/link-factory.js
Original file line number Diff line number Diff line change
@@ -15,7 +15,6 @@ function linkFactory(router) {

getDefaultProps() {
return {
className: '',
activeClassName: 'active',
activeStrict: false,
routeParams: {},
@@ -42,7 +41,7 @@ function linkFactory(router) {

clickHandler(evt) {
evt.preventDefault()
router.navigate(this.props.routeName, this.props.routeParams, this.props.options)
router.navigate(this.props.routeName, this.props.routeParams, this.props.routeOptions)
},

// Is it overkill?

0 comments on commit 618157b

Please sign in to comment.