Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit ec01a2e

Browse files
author
Tilde Ann Thurium
committed
remove autobind from IssueDetailView
1 parent c3500d9 commit ec01a2e

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

lib/views/issue-detail-view.js

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import IssueishBadge from '../views/issueish-badge';
99
import GithubDotcomMarkdown from '../views/github-dotcom-markdown';
1010
import EmojiReactionsView from '../views/emoji-reactions-view';
1111
import PeriodicRefresher from '../periodic-refresher';
12-
import {autobind} from '../helpers';
1312
import {addEvent} from '../reporter-proxy';
1413

1514
export class BareIssueDetailView extends React.Component {
@@ -55,11 +54,6 @@ export class BareIssueDetailView extends React.Component {
5554
refreshing: false,
5655
}
5756

58-
constructor(props) {
59-
super(props);
60-
autobind(this, 'handleRefreshClick', 'refresh', 'renderIssueBody', 'recordOpenInBrowserEvent');
61-
}
62-
6357
componentDidMount() {
6458
this.refresher = new PeriodicRefresher(BareIssueDetailView, {
6559
interval: () => 5 * 60 * 1000,
@@ -145,16 +139,16 @@ export class BareIssueDetailView extends React.Component {
145139
);
146140
}
147141

148-
handleRefreshClick(e) {
142+
handleRefreshClick = (e) => {
149143
e.preventDefault();
150144
this.refresher.refreshNow(true);
151145
}
152146

153-
recordOpenInBrowserEvent() {
147+
recordOpenInBrowserEvent = () => {
154148
addEvent('open-issue-in-browser', {package: 'github', component: this.constructor.name});
155149
}
156150

157-
refresh() {
151+
refresh = () => {
158152
if (this.state.refreshing) {
159153
return;
160154
}

0 commit comments

Comments
 (0)