Michelle Bu 12 years ago
parent
commit
7c04323883
4 changed files with 6 additions and 6 deletions
  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();
     }
   });

File diff suppressed because it is too large
+ 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();
     }
   });

Some files were not shown because too many files changed in this diff