ソースを参照

remnants of old api

Michelle Bu 12 年 前
コミット
200be3eee7
4 ファイル変更4 行追加4 行削除
  1. 2 2
      dist/peer.js
  2. 0 0
      dist/peer.min.js
  3. 1 1
      lib/connection.js
  4. 1 1
      lib/socket.js

+ 2 - 2
dist/peer.js

@@ -1376,7 +1376,7 @@ exports.Peer = Peer;
  * A DataChannel|PeerConnection between two Peers.
  */
 function DataConnection(id, peer, socket, options) {
-  if (!(this instanceof DataConnection)) return new DataConnection(options);
+  if (!(this instanceof DataConnection)) return new DataConnection(id, peer, socket, options);
   EventEmitter.call(this);
 
   options = util.extend({
@@ -1751,7 +1751,7 @@ DataConnection.prototype.handlePort = function(message) {
  * possible connection for peers.
  */
 function Socket(host, port, key, id) {
-  if (!(this instanceof Socket)) return new Socket(server, id, key);
+  if (!(this instanceof Socket)) return new Socket(host, port, key, id);
   EventEmitter.call(this);
   
   this._id = id;

ファイルの差分が大きいため隠しています
+ 0 - 0
dist/peer.min.js


+ 1 - 1
lib/connection.js

@@ -2,7 +2,7 @@
  * A DataChannel|PeerConnection between two Peers.
  */
 function DataConnection(id, peer, socket, options) {
-  if (!(this instanceof DataConnection)) return new DataConnection(options);
+  if (!(this instanceof DataConnection)) return new DataConnection(id, peer, socket, options);
   EventEmitter.call(this);
 
   options = util.extend({

+ 1 - 1
lib/socket.js

@@ -3,7 +3,7 @@
  * possible connection for peers.
  */
 function Socket(host, port, key, id) {
-  if (!(this instanceof Socket)) return new Socket(server, id, key);
+  if (!(this instanceof Socket)) return new Socket(host, port, key, id);
   EventEmitter.call(this);
   
   this._id = id;

この差分においてかなりの量のファイルが変更されているため、一部のファイルを表示していません