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