Skip to content

Commit

Permalink
[fixed] warning on links w/o params
Browse files Browse the repository at this point in the history
fixes #253
  • Loading branch information
ryanflorence committed Aug 31, 2014
1 parent a85267a commit 7536d96
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modules/components/Link.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,13 @@ var Link = React.createClass({

// TODO: Deprecate passing props as params in v1.0
getUnreservedProps: function (props) {
var props = withoutProperties(props, RESERVED_PROPS);
warning(
false,
Object.keys(props).length === 0,
'Passing props for params on <Link>s is deprecated, '+
'please use the `params` property.'
);
return withoutProperties(props, RESERVED_PROPS);
return props;
},

/**
Expand Down

0 comments on commit 7536d96

Please sign in to comment.