Michelle Bu 12 gadi atpakaļ
vecāks
revīzija
7c04323883
4 mainītis faili ar 6 papildinājumiem un 6 dzēšanām
  1. 2 2
      demo/static/peer.js
  2. 2 2
      dist/peer.js
  3. 0 0
      dist/peer.min.js
  4. 2 2
      lib/peer.js

+ 2 - 2
demo/static/peer.js

@@ -889,8 +889,8 @@ Peer.prototype._startSocket = function() {
     self._handleServerJSONMessage(data);
     self._handleServerJSONMessage(data);
   });
   });
   this._socket.on('open', function() {
   this._socket.on('open', function() {
-    if (this.id) {
-      this.emit('open', this.id);
+    if (self.id) {
+      self.emit('open', self.id);
       self._processQueue();
       self._processQueue();
     }
     }
   });
   });

+ 2 - 2
dist/peer.js

@@ -889,8 +889,8 @@ Peer.prototype._startSocket = function() {
     self._handleServerJSONMessage(data);
     self._handleServerJSONMessage(data);
   });
   });
   this._socket.on('open', function() {
   this._socket.on('open', function() {
-    if (this.id) {
-      this.emit('open', this.id);
+    if (self.id) {
+      self.emit('open', self.id);
       self._processQueue();
       self._processQueue();
     }
     }
   });
   });

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
dist/peer.min.js


+ 2 - 2
lib/peer.js

@@ -50,8 +50,8 @@ Peer.prototype._startSocket = function() {
     self._handleServerJSONMessage(data);
     self._handleServerJSONMessage(data);
   });
   });
   this._socket.on('open', function() {
   this._socket.on('open', function() {
-    if (this.id) {
-      this.emit('open', this.id);
+    if (self.id) {
+      self.emit('open', self.id);
       self._processQueue();
       self._processQueue();
     }
     }
   });
   });

Daži faili netika attēloti, jo izmaiņu fails ir pārāk liels