瀏覽代碼

Fixes some typos that cause errors

j8
Zalmoxisus 10 年之前
父節點
當前提交
567ac23c2c
共有 4 個檔案被更改,包括 4 行新增4 行删除
  1. 1
    1
      libs/modules/RTC.bundle.js
  2. 1
    1
      libs/modules/xmpp.bundle.js
  3. 1
    1
      modules/RTC/DataChannels.js
  4. 1
    1
      modules/xmpp/strophe.emuc.js

+ 1
- 1
libs/modules/RTC.bundle.js 查看文件

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

+ 1
- 1
libs/modules/xmpp.bundle.js 查看文件

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

+ 1
- 1
modules/RTC/DataChannels.js 查看文件

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

+ 1
- 1
modules/xmpp/strophe.emuc.js 查看文件

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

Loading…
取消
儲存