浏览代码

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();