Kaynağa Gözat

rename _getId -> _retrieveId to prevent confusion with id getter

ericz 12 yıl önce
ebeveyn
işleme
d8206793cc
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      lib/peer.js

+ 2 - 2
lib/peer.js

@@ -65,13 +65,13 @@ function Peer(id, options) {
     this._init();
   } else {
     this.id = null;
-    this._getId();
+    this._retrieveId();
   }
 };
 
 util.inherits(Peer, EventEmitter);
 
-Peer.prototype._getId = function(cb) {  
+Peer.prototype._retrieveId = function(cb) {  
   var self = this;
   try {
     var http = new XMLHttpRequest();