Skip to content

Commit

Permalink
Bump to 0.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ShinyChang committed Mar 31, 2016
1 parent 9dce14e commit 61c26f4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ var TextTruncate = require('react-text-truncate'); // CommonJS or UMD


## Changelog
* 0.5.1 Hide `textTruncateChild` when nothing truncated
* 0.5.0 Add request animation frame
* 0.4.0 New property `textTruncateChild` for show more or others.
* 0.4.0 New property `textTruncateChild` for show more or others
* 0.3.7 Support CommonJS and UMD module loader
* 0.3.5 Fix window resize issue
* 0.3.4 supports Babel6
Expand Down
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@
attrs,
text
),
this.props.text == text ? null : this.props.textTruncateChild
this.props.text === text ? null : this.props.textTruncateChild
);
}
}]);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-text-truncate",
"version": "0.5.0",
"version": "0.5.1",
"description": "Truncate text for React.js",
"main": "lib/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/TextTruncate.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export default class TextTruncate extends Component {
return (
<div>
<div {...attrs}>{text}</div>
{this.props.text == text ? null : this.props.textTruncateChild}
{this.props.text === text ? null : this.props.textTruncateChild}
</div>
);
}
Expand Down

0 comments on commit 61c26f4

Please sign in to comment.