Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4e78bc0

Browse files
author
Tilde Ann Thurium
committed
🔥 autobind
1 parent 3f32e0f commit 4e78bc0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/views/changed-files-count-view.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import Tooltip from '../atom/tooltip';
77
import RefHolder from '../models/ref-holder';
88

99
import {addEvent} from '../reporter-proxy';
10-
import {autobind} from '../helpers';
1110

1211
export const tooltipMessage = 'Click to open the Git pane and commit your changes';
1312

@@ -27,11 +26,10 @@ export default class ChangedFilesCountView extends React.Component {
2726

2827
constructor(props) {
2928
super(props);
30-
autobind(this, 'handleClick');
3129
this.refTileNode = new RefHolder();
3230
}
3331

34-
handleClick() {
32+
handleClick = () => {
3533
addEvent('click', {package: 'github', component: 'ChangedFileCountView'});
3634
this.props.didClick();
3735
}

0 commit comments

Comments
 (0)