Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit b678c2c

Browse files
author
Luke Barnard
committed
Don't bind Pill function, React does this for us
1 parent 273abd9 commit b678c2c

File tree

1 file changed

+1
-1
lines changed
  • src/components/views/elements

1 file changed

+1
-1
lines changed

src/components/views/elements/Pill.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ const Pill = React.createClass({
171171
}
172172
pillClass = 'mx_UserPill';
173173
href = null;
174-
onClick = this.onUserPillClicked.bind(this);
174+
onClick = this.onUserPillClicked;
175175
}
176176
}
177177
break;

0 commit comments

Comments
 (0)