Michelle Bu 12 lat temu
rodzic
commit
7c04323883
4 zmienionych plików z 6 dodań i 6 usunięć
  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);
   });
   this._socket.on('open', function() {
-    if (this.id) {
-      this.emit('open', this.id);
+    if (self.id) {
+      self.emit('open', self.id);
       self._processQueue();
     }
   });

+ 2 - 2
dist/peer.js

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

Plik diff jest za duży
+ 0 - 0
dist/peer.min.js


+ 2 - 2
lib/peer.js

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

Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików