event handlers need to be bound with es6 react classes
This commit is contained in:
parent
8b38af856a
commit
97789a8858
1 changed files with 7 additions and 0 deletions
|
@ -19,6 +19,13 @@ import dis from '../../dispatcher';
|
||||||
import { _t } from '../../languageHandler';
|
import { _t } from '../../languageHandler';
|
||||||
|
|
||||||
export class TopLeftMenu extends React.Component {
|
export class TopLeftMenu extends React.Component {
|
||||||
|
|
||||||
|
constructor() {
|
||||||
|
super();
|
||||||
|
this.openSettings = this.openSettings.bind(this);
|
||||||
|
this.signOut = this.signOut.bind(this);
|
||||||
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
return <div className="mx_TopLeftMenu">
|
return <div className="mx_TopLeftMenu">
|
||||||
<ul className="mx_TopLeftMenu_section">
|
<ul className="mx_TopLeftMenu_section">
|
||||||
|
|
Loading…
Reference in a new issue