Skip to content
This repository has been archived by the owner on Jul 15, 2019. It is now read-only.

Commit

Permalink
update document and params name
Browse files Browse the repository at this point in the history
  • Loading branch information
kaesonho committed Jul 27, 2015
1 parent d745b97 commit b0309a0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/api/createNavLinkComponent.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

| Param Name | Param Type | Description |
|-----------|-----------|-------------|
| options | Object | the object taken to overwrite the default attribute when we create NavLink |
| overwriteSpec | Object | the spec object taken to overwrite the default spec when we create NavLink using React.createClass |


## Example Usage
Expand Down
6 changes: 3 additions & 3 deletions lib/createNavLinkComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ function isModifiedEvent (e) {

/**
* create NavLink component with custom options
* @param {Object} options to overwrite the default attributes to create NavLink
* @param {Object} overwriteSpec spec to overwrite the default spec to create NavLink
* @returns {React.Component} NavLink component
*/
module.exports = function createNavLinkComponent (options) {
module.exports = function createNavLinkComponent (overwriteSpec) {
var NavLink = React.createClass(objectAssign({}, {
displayName: 'NavLink',
contextTypes: {
Expand Down Expand Up @@ -169,6 +169,6 @@ module.exports = function createNavLinkComponent (options) {
this.props.children
);
}
}, options));
}, overwriteSpec));
return NavLink;
};

0 comments on commit b0309a0

Please sign in to comment.