瀏覽代碼

Fixes this reference in methods.

master
damencho 9 年之前
父節點
當前提交
dd38d5bcd9
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. 2
    2
      modules/xmpp/strophe.jingle.js

+ 2
- 2
modules/xmpp/strophe.jingle.js 查看文件

240
                         }
240
                         }
241
                     }
241
                     }
242
                 });
242
                 });
243
-                self.ice_config.iceServers = iceservers;
243
+                this.ice_config.iceServers = iceservers;
244
             }, (err) => {
244
             }, (err) => {
245
                 logger.warn('getting turn credentials failed', err);
245
                 logger.warn('getting turn credentials failed', err);
246
                 logger.warn('is mod_turncredentials or similar installed?');
246
                 logger.warn('is mod_turncredentials or similar installed?');
254
     getLog () {
254
     getLog () {
255
         const data = {};
255
         const data = {};
256
         Object.keys(this.sessions).forEach((sid) => {
256
         Object.keys(this.sessions).forEach((sid) => {
257
-            const session = self.sessions[sid];
257
+            const session = this.sessions[sid];
258
             const pc = session.peerconnection;
258
             const pc = session.peerconnection;
259
             if (pc && pc.updateLog) {
259
             if (pc && pc.updateLog) {
260
                 // FIXME: should probably be a .dump call
260
                 // FIXME: should probably be a .dump call

Loading…
取消
儲存