From 567ac23c2ce5d7c69248d38b54b3f28b66e5d11a Mon Sep 17 00:00:00 2001 From: Zalmoxisus Date: Mon, 26 Jan 2015 16:24:26 +0200 Subject: [PATCH] Fixes some typos that cause errors --- libs/modules/RTC.bundle.js | 2 +- libs/modules/xmpp.bundle.js | 2 +- modules/RTC/DataChannels.js | 2 +- modules/xmpp/strophe.emuc.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libs/modules/RTC.bundle.js b/libs/modules/RTC.bundle.js index 8d1510fb7..dfb3918f3 100644 --- a/libs/modules/RTC.bundle.js +++ b/libs/modules/RTC.bundle.js @@ -154,7 +154,7 @@ var DataChannels = */ bindDataChannelListener: function (peerConnection) { if(!config.openSctp) - retrun; + return; peerConnection.ondatachannel = this.onDataChannel; diff --git a/libs/modules/xmpp.bundle.js b/libs/modules/xmpp.bundle.js index c401f6ac2..585414193 100644 --- a/libs/modules/xmpp.bundle.js +++ b/libs/modules/xmpp.bundle.js @@ -3796,7 +3796,7 @@ module.exports = function(XMPP, eventEmitter) { var self = this; // Remove old ssrcs coming from the jid Object.keys(this.ssrc2jid).forEach(function (ssrc) { - if (self.ssrc2jid[ssrc] == jid) { + if (self.ssrc2jid[ssrc] == from) { delete self.ssrc2jid[ssrc]; } }); diff --git a/modules/RTC/DataChannels.js b/modules/RTC/DataChannels.js index 8cb75ae90..ec2a9e700 100644 --- a/modules/RTC/DataChannels.js +++ b/modules/RTC/DataChannels.js @@ -153,7 +153,7 @@ var DataChannels = */ bindDataChannelListener: function (peerConnection) { if(!config.openSctp) - retrun; + return; peerConnection.ondatachannel = this.onDataChannel; diff --git a/modules/xmpp/strophe.emuc.js b/modules/xmpp/strophe.emuc.js index d6d48afa3..001d0feb5 100644 --- a/modules/xmpp/strophe.emuc.js +++ b/modules/xmpp/strophe.emuc.js @@ -570,7 +570,7 @@ module.exports = function(XMPP, eventEmitter) { var self = this; // Remove old ssrcs coming from the jid Object.keys(this.ssrc2jid).forEach(function (ssrc) { - if (self.ssrc2jid[ssrc] == jid) { + if (self.ssrc2jid[ssrc] == from) { delete self.ssrc2jid[ssrc]; } });