Michelle Bu 12 лет назад
Родитель
Сommit
7c04323883
4 измененных файлов с 6 добавлено и 6 удалено
  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();
     }
   });

Разница между файлами не показана из-за своего большого размера
+ 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();
     }
   });

Некоторые файлы не были показаны из-за большого количества измененных файлов