event handlers need to be bound with es6 react classes

pull/21833/head
Bruno Windels 2018-10-23 15:33:24 +02:00
parent 8b38af856a
commit 97789a8858
1 changed files with 7 additions and 0 deletions

View File

@ -19,6 +19,13 @@ import dis from '../../dispatcher';
import { _t } from '../../languageHandler';
export class TopLeftMenu extends React.Component {
constructor() {
super();
this.openSettings = this.openSettings.bind(this);
this.signOut = this.signOut.bind(this);
}
render() {
return <div className="mx_TopLeftMenu">
<ul className="mx_TopLeftMenu_section">