diff options
author | Yamagishi Kazutoshi <ykzts@desire.sh> | 2017-05-25 00:55:16 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-05-24 17:55:16 +0200 |
commit | 1ec7c87001c39cca4b784bf97972280fd965efb3 (patch) | |
tree | 12abc74c2ef8206a9df80a6ca3671e24f72605f6 /app/javascript/mastodon/components/account.js | |
parent | 8e4d1cba00b48bc52dc406956a245856c489e48a (diff) |
Remove unnecessary constructors (#3280)
Diffstat (limited to 'app/javascript/mastodon/components/account.js')
-rw-r--r-- | app/javascript/mastodon/components/account.js | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/app/javascript/mastodon/components/account.js b/app/javascript/mastodon/components/account.js index baac734aa..9d65af46c 100644 --- a/app/javascript/mastodon/components/account.js +++ b/app/javascript/mastodon/components/account.js @@ -27,22 +27,15 @@ class Account extends ImmutablePureComponent { intl: PropTypes.object.isRequired, }; - constructor (props, context) { - super(props, context); - this.handleFollow = this.handleFollow.bind(this); - this.handleBlock = this.handleBlock.bind(this); - this.handleMute = this.handleMute.bind(this); - } - - handleFollow () { + handleFollow = () => { this.props.onFollow(this.props.account); } - handleBlock () { + handleBlock = () => { this.props.onBlock(this.props.account); } - handleMute () { + handleMute = () => { this.props.onMute(this.props.account); } |