Przeglądaj źródła

Removes unused $(document).trigger

dev1
paweldomas 9 lat temu
rodzic
commit
0ba2c9fffc
1 zmienionych plików z 1 dodań i 9 usunięć
  1. 1
    9
      modules/xmpp/JingleSessionPC.js

+ 1
- 9
modules/xmpp/JingleSessionPC.js Wyświetl plik

@@ -240,11 +240,7 @@ JingleSessionPC.prototype.accept = function () {
240 240
     this.peerconnection.setLocalDescription(new RTCSessionDescription({type: 'answer', sdp: sdp}),
241 241
         function () {
242 242
             self.connection.sendIQ(accept,
243
-                function () {
244
-                    var ack = {};
245
-                    ack.source = 'answer';
246
-                    $(document).trigger('ack.jingle', [self.sid, ack]);
247
-                },
243
+                null,
248 244
                 self.newJingleErrorHandler(accept),
249 245
                 IQ_TIMEOUT);
250 246
         },
@@ -335,10 +331,6 @@ JingleSessionPC.prototype.sendIceCandidate = function (candidate) {
335 331
         this.lasticecandidate = true;
336 332
         logger.log('Have we encountered any srflx candidates? ' + this.hadstuncandidate);
337 333
         logger.log('Have we encountered any relay candidates? ' + this.hadturncandidate);
338
-
339
-        if (!(this.hadstuncandidate || this.hadturncandidate) && this.peerconnection.signalingState != 'closed') {
340
-            $(document).trigger('nostuncandidates.jingle', [this.sid]);
341
-        }
342 334
     }
343 335
 };
344 336
 

Ładowanie…
Anuluj
Zapisz