diff options
author | Christopher Speller <crspeller@gmail.com> | 2016-11-17 12:02:16 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-17 12:02:16 -0500 |
commit | a7987149582a42e0f6d05813bc0f61fcdd6f805c (patch) | |
tree | ec862778a119f86c21943db625839bae31de5bb9 /webapp/client | |
parent | b1db1463f6e858b535d291d3f442eaf8a05bc410 (diff) | |
download | chat-a7987149582a42e0f6d05813bc0f61fcdd6f805c.tar.gz chat-a7987149582a42e0f6d05813bc0f61fcdd6f805c.tar.bz2 chat-a7987149582a42e0f6d05813bc0f61fcdd6f805c.zip |
Updating eslint (#4573)
Diffstat (limited to 'webapp/client')
-rw-r--r-- | webapp/client/web_client.jsx | 8 | ||||
-rw-r--r-- | webapp/client/webrtc_session.jsx | 6 |
2 files changed, 7 insertions, 7 deletions
diff --git a/webapp/client/web_client.jsx b/webapp/client/web_client.jsx index 5d2696c37..c5d704d8c 100644 --- a/webapp/client/web_client.jsx +++ b/webapp/client/web_client.jsx @@ -17,23 +17,23 @@ class WebClientClass extends Client { TeamStore.addChangeListener(this.onTeamStoreChanged); } - 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'); } diff --git a/webapp/client/webrtc_session.jsx b/webapp/client/webrtc_session.jsx index 9ee7fcd5a..df60a1053 100644 --- a/webapp/client/webrtc_session.jsx +++ b/webapp/client/webrtc_session.jsx @@ -1951,7 +1951,7 @@ export default class WebrtcSession { return (trickle === true); } - unbindWebSocket = (onUnbindMessage, onUnbindError) => { + unbindWebSocket(onUnbindMessage, onUnbindError) { for (var eventName in this.wsHandlers) { if (this.wsHandlers.hasOwnProperty(eventName)) { this.ws.removeEventListener(eventName, this.wsHandlers[eventName]); @@ -1962,5 +1962,5 @@ export default class WebrtcSession { if (this.wsKeepaliveTimeoutId) { clearTimeout(this.wsKeepaliveTimeoutId); } - }; -}
\ No newline at end of file + } +} |