Преглед на файлове

rename _getId -> _retrieveId to prevent confusion with id getter

ericz преди 12 години
родител
ревизия
d8206793cc
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  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();