Skip to content

Commit

Permalink
fixed #11, v1.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
hustcc committed Jun 2, 2017
1 parent 53fc8eb commit 4c94d1e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions demo/dist/bundle.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion lib/timeago-react.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,11 @@ var TimeAgo = function (_React$Component) {

var _props2 = this.props,
datetime = _props2.datetime,
live = _props2.live,
locale = _props2.locale,
className = _props2.className,
style = _props2.style,
others = _objectWithoutProperties(_props2, ['datetime', 'locale', 'className', 'style']);
others = _objectWithoutProperties(_props2, ['datetime', 'live', 'locale', 'className', 'style']);

return _react2['default'].createElement(
'time',
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": "timeago-react",
"version": "1.2.0",
"version": "1.2.1",
"description": "timeago-react is a simple(only 2kb) react component used to format date with `*** time ago` statement. eg: '3 hours ago'.",
"main": "lib/timeago-react.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/timeago-react.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default class TimeAgo extends React.Component {
}
// for render
render() {
const { datetime, locale, className, style, ...others } = this.props;
const { datetime, live, locale, className, style, ...others } = this.props;
return (
<time
ref={(c) => { this.timeagoDom = c }}
Expand Down

0 comments on commit 4c94d1e

Please sign in to comment.