Michelle Bu 12 년 전
부모
커밋
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();
     }
   });

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.