Преглед изворни кода

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