From b73d56027500cc7d0e42282927d0e699d27fcc34 Mon Sep 17 00:00:00 2001 From: Mark Banner Date: Fri, 8 Aug 2014 09:28:48 +0100 Subject: [PATCH] Bug 1050314 Loop standalone client is broken in Chrome due to use of ES6 functions. r=dmose --- browser/components/loop/standalone/content/js/webapp.js | 4 ++-- browser/components/loop/standalone/content/js/webapp.jsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/browser/components/loop/standalone/content/js/webapp.js b/browser/components/loop/standalone/content/js/webapp.js index 4db7c4ffdd5d..d1cfe72584f4 100644 --- a/browser/components/loop/standalone/content/js/webapp.js +++ b/browser/components/loop/standalone/content/js/webapp.js @@ -285,7 +285,7 @@ loop.webapp = (function($, _, OT, webL10n) { // XXX For now, we assume both audio and video as there is no // other option to select (bug 1048333) this._client.requestCallInfo(this._conversation.get("loopToken"), "audio-video", - (err, sessionData) => { + function(err, sessionData) { if (err) { switch (err.errno) { // loop-server sends 404 + INVALID_TOKEN (errno 105) whenever a token is @@ -302,7 +302,7 @@ loop.webapp = (function($, _, OT, webL10n) { return; } this._conversation.outgoing(sessionData); - }); + }.bind(this)); } }, diff --git a/browser/components/loop/standalone/content/js/webapp.jsx b/browser/components/loop/standalone/content/js/webapp.jsx index a9a5571036e9..26e790cb5d75 100644 --- a/browser/components/loop/standalone/content/js/webapp.jsx +++ b/browser/components/loop/standalone/content/js/webapp.jsx @@ -285,7 +285,7 @@ loop.webapp = (function($, _, OT, webL10n) { // XXX For now, we assume both audio and video as there is no // other option to select (bug 1048333) this._client.requestCallInfo(this._conversation.get("loopToken"), "audio-video", - (err, sessionData) => { + function(err, sessionData) { if (err) { switch (err.errno) { // loop-server sends 404 + INVALID_TOKEN (errno 105) whenever a token is @@ -302,7 +302,7 @@ loop.webapp = (function($, _, OT, webL10n) { return; } this._conversation.outgoing(sessionData); - }); + }.bind(this)); } },