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

Commit 618157b

Browse files
committed
fix: use of routeOptions
1 parent efe3fbc commit 618157b

File tree

5 files changed

+5
-9
lines changed

5 files changed

+5
-9
lines changed

dist/amd/link-factory.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ define(['exports', 'module', 'react'], function (exports, module, _react) {
2020

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

4544
clickHandler: function clickHandler(evt) {
4645
evt.preventDefault();
47-
router.navigate(this.props.routeName, this.props.routeParams, this.props.options);
46+
router.navigate(this.props.routeName, this.props.routeParams, this.props.routeOptions);
4847
},
4948

5049
// Is it overkill?

dist/browser/router5-react.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ function linkFactory(router) {
3838

3939
getDefaultProps: function getDefaultProps() {
4040
return {
41-
className: '',
4241
activeClassName: 'active',
4342
activeStrict: false,
4443
routeParams: {},
@@ -62,7 +61,7 @@ function linkFactory(router) {
6261

6362
clickHandler: function clickHandler(evt) {
6463
evt.preventDefault();
65-
router.navigate(this.props.routeName, this.props.routeParams, this.props.options);
64+
router.navigate(this.props.routeName, this.props.routeParams, this.props.routeOptions);
6665
},
6766

6867
// Is it overkill?

dist/browser/router5-react.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/commonjs/link-factory.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ function linkFactory(router) {
2525

2626
getDefaultProps: function getDefaultProps() {
2727
return {
28-
className: '',
2928
activeClassName: 'active',
3029
activeStrict: false,
3130
routeParams: {},
@@ -49,7 +48,7 @@ function linkFactory(router) {
4948

5049
clickHandler: function clickHandler(evt) {
5150
evt.preventDefault();
52-
router.navigate(this.props.routeName, this.props.routeParams, this.props.options);
51+
router.navigate(this.props.routeName, this.props.routeParams, this.props.routeOptions);
5352
},
5453

5554
// Is it overkill?

modules/link-factory.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ function linkFactory(router) {
1515

1616
getDefaultProps() {
1717
return {
18-
className: '',
1918
activeClassName: 'active',
2019
activeStrict: false,
2120
routeParams: {},
@@ -42,7 +41,7 @@ function linkFactory(router) {
4241

4342
clickHandler(evt) {
4443
evt.preventDefault()
45-
router.navigate(this.props.routeName, this.props.routeParams, this.props.options)
44+
router.navigate(this.props.routeName, this.props.routeParams, this.props.routeOptions)
4645
},
4746

4847
// Is it overkill?

0 commit comments

Comments
 (0)