We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e1d7f6 commit 04ab51eCopy full SHA for 04ab51e
lib/Link.js
@@ -41,13 +41,15 @@ var Link = React.createClass({
41
},
42
43
_navigate: function(path, cb) {
44
- if(this.props.globalHash) {
+ if (this.props.globalHash) {
45
return Environment.hashEnvironment.navigate(path, cb);
46
}
47
48
- return this.props.global ?
49
- Environment.defaultEnvironment.navigate(path, cb) :
50
- this.navigate(path, cb);
+ if (this.props.global) {
+ return Environment.defaultEnvironment.navigate(path, cb);
+ }
51
+
52
+ return this.navigate(path, cb);
53
54
55
render: function() {
0 commit comments