summaryrefslogtreecommitdiffstats
path: root/webapp/client/web_client.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/client/web_client.jsx')
-rw-r--r--webapp/client/web_client.jsx10
1 files changed, 5 insertions, 5 deletions
diff --git a/webapp/client/web_client.jsx b/webapp/client/web_client.jsx
index 5d2696c37..85ced325e 100644
--- a/webapp/client/web_client.jsx
+++ b/webapp/client/web_client.jsx
@@ -14,26 +14,26 @@ class WebClientClass extends Client {
constructor() {
super();
this.enableLogErrorsToConsole(true);
- TeamStore.addChangeListener(this.onTeamStoreChanged);
+ TeamStore.addChangeListener(this.onTeamStoreChanged.bind(this));
}
- onTeamStoreChanged = () => {
+ onTeamStoreChanged() {
this.setTeamId(TeamStore.getCurrentId());
}
- track = (category, action, label, property, value) => {
+ track(category, action, label, property, value) {
if (global.window && global.window.analytics) {
global.window.analytics.track(action, {category, label, property, value});
}
}
- trackPage = () => {
+ trackPage() {
if (global.window && global.window.analytics) {
global.window.analytics.page();
}
}
- handleError = (err, res) => { // eslint-disable-line no-unused-vars
+ handleError(err, res) {
if (err.status === HTTP_UNAUTHORIZED && res.req.url !== '/api/v3/users/login') {
GlobalActions.emitUserLoggedOutEvent('/login');
}