flux-router-component
Advanced tools
Comparing version 0.5.14 to 0.5.15
@@ -90,12 +90,7 @@ /** | ||
render: function() { | ||
var context; | ||
if (this.context && this.context.makePath) { | ||
context = this.context; | ||
} else if (this.props.context && this.props.context.makePath) { | ||
context = this.props.context; | ||
} | ||
var context = this.props.context || this.context; | ||
var routeName = this.props.routeName; | ||
var newProps = {}; | ||
if (!this.props.href && routeName && context) { | ||
this.props.href = context.makePath(routeName, this.props.navParams); | ||
newProps.href = context.makePath(routeName, this.props.navParams); | ||
} | ||
@@ -106,3 +101,3 @@ return React.createElement( | ||
onClick: this.dispatchNavAction | ||
}, this.props), | ||
}, this.props, newProps), | ||
this.props.children | ||
@@ -109,0 +104,0 @@ ); |
{ | ||
"name": "flux-router-component", | ||
"version": "0.5.14", | ||
"version": "0.5.15", | ||
"description": "Router-related React component and mixin for applications with Fluxible architecture", | ||
@@ -29,3 +29,3 @@ "main": "index.js", | ||
"peerDependencies": { | ||
"react": ">=0.12.0 <=0.13.0-rcx" | ||
"react": ">=0.12.0 <=0.13.x" | ||
}, | ||
@@ -41,4 +41,4 @@ "devDependencies": { | ||
"precommit-hook": "^1.0.2", | ||
"react": ">=0.12.0 <=0.13.0-rcx", | ||
"react-tools": ">=0.12.0 <=0.13.0-rcx" | ||
"react": ">=0.12.0 <=0.13.x", | ||
"react-tools": ">=0.12.0 <=0.13.x" | ||
}, | ||
@@ -45,0 +45,0 @@ "jshintConfig": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
94006
27
616