Merge pull request #220 from Zalmoxisus/master

Fixes some typos that cause errors
This commit is contained in:
bgrozev 2015-01-26 09:29:59 -06:00
commit 70bc071cb8
4 changed files with 4 additions and 4 deletions

View File

@ -154,7 +154,7 @@ var DataChannels =
*/ */
bindDataChannelListener: function (peerConnection) { bindDataChannelListener: function (peerConnection) {
if(!config.openSctp) if(!config.openSctp)
retrun; return;
peerConnection.ondatachannel = this.onDataChannel; peerConnection.ondatachannel = this.onDataChannel;

View File

@ -3796,7 +3796,7 @@ module.exports = function(XMPP, eventEmitter) {
var self = this; var self = this;
// Remove old ssrcs coming from the jid // Remove old ssrcs coming from the jid
Object.keys(this.ssrc2jid).forEach(function (ssrc) { Object.keys(this.ssrc2jid).forEach(function (ssrc) {
if (self.ssrc2jid[ssrc] == jid) { if (self.ssrc2jid[ssrc] == from) {
delete self.ssrc2jid[ssrc]; delete self.ssrc2jid[ssrc];
} }
}); });

View File

@ -153,7 +153,7 @@ var DataChannels =
*/ */
bindDataChannelListener: function (peerConnection) { bindDataChannelListener: function (peerConnection) {
if(!config.openSctp) if(!config.openSctp)
retrun; return;
peerConnection.ondatachannel = this.onDataChannel; peerConnection.ondatachannel = this.onDataChannel;

View File

@ -570,7 +570,7 @@ module.exports = function(XMPP, eventEmitter) {
var self = this; var self = this;
// Remove old ssrcs coming from the jid // Remove old ssrcs coming from the jid
Object.keys(this.ssrc2jid).forEach(function (ssrc) { Object.keys(this.ssrc2jid).forEach(function (ssrc) {
if (self.ssrc2jid[ssrc] == jid) { if (self.ssrc2jid[ssrc] == from) {
delete self.ssrc2jid[ssrc]; delete self.ssrc2jid[ssrc];
} }
}); });