From 04cfbafc33518515dfbc6a600c85814fe22bb3f2 Mon Sep 17 00:00:00 2001 From: hristoterezov Date: Fri, 6 Feb 2015 15:43:40 +0200 Subject: [PATCH] Fixes issue with recording. --- index.html | 2 +- libs/app.bundle.js | 3 ++- modules/xmpp/recording.js | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index e27b512b3..13f3e1fc7 100644 --- a/index.html +++ b/index.html @@ -19,7 +19,7 @@ - + diff --git a/libs/app.bundle.js b/libs/app.bundle.js index 00b374419..dc8cacf06 100644 --- a/libs/app.bundle.js +++ b/libs/app.bundle.js @@ -14436,11 +14436,12 @@ var Recording = { return; } + var self = this; // Jirecon does not (currently) support a token. if (!recordingToken && !useJirecon) { tokenEmptyCallback(function (value) { setRecordingToken(value); - this.toggleRecording(); + self.toggleRecording(); }); return; diff --git a/modules/xmpp/recording.js b/modules/xmpp/recording.js index f3f91ed12..7ec8bce72 100644 --- a/modules/xmpp/recording.js +++ b/modules/xmpp/recording.js @@ -103,11 +103,12 @@ var Recording = { return; } + var self = this; // Jirecon does not (currently) support a token. if (!recordingToken && !useJirecon) { tokenEmptyCallback(function (value) { setRecordingToken(value); - this.toggleRecording(); + self.toggleRecording(); }); return;