bug: this -> self
This commit is contained in:
parent
952b2a6d36
commit
8a89e687e1
1 changed files with 3 additions and 3 deletions
|
|
@ -126,11 +126,11 @@ Network.prototype._onClose = function(peerID) {
|
||||||
|
|
||||||
Network.prototype.connectToCopayers = function(copayerIds) {
|
Network.prototype.connectToCopayers = function(copayerIds) {
|
||||||
var self = this;
|
var self = this;
|
||||||
var arrayDiff= Network._arrayDiff(copayerIds, this.connectedCopayers());
|
var arrayDiff= Network._arrayDiff(copayerIds, self.connectedCopayers());
|
||||||
|
|
||||||
arrayDiff.forEach(function(copayerId) {
|
arrayDiff.forEach(function(copayerId) {
|
||||||
if (this.allowedCopayerIds && !this.allowedCopayerIds[copayerId]) {
|
if (self.allowedCopayerIds && !self.allowedCopayerIds[copayerId]) {
|
||||||
this._deletePeer(this.peerFromCopayer(copayerId));
|
self._deletePeer(self.peerFromCopayer(copayerId));
|
||||||
} else {
|
} else {
|
||||||
self.connectTo(copayerId);
|
self.connectTo(copayerId);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue