From 86c8137da0e7bb2b601941ccbe6666af6a1fce3a Mon Sep 17 00:00:00 2001 From: Matias Pando Date: Tue, 23 Sep 2014 11:24:08 -0300 Subject: [PATCH] Removed whitespaces --- js/controllers/addresses.js | 2 +- js/models/Async.js | 3 --- js/models/PublicKeyRing.js | 6 ++---- 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/js/controllers/addresses.js b/js/controllers/addresses.js index f2fa26dac..c75783bab 100644 --- a/js/controllers/addresses.js +++ b/js/controllers/addresses.js @@ -81,7 +81,7 @@ angular.module('copayApp.controllers').controller('AddressesController', 'address': addrinfo.addressStr, 'balance': $rootScope.balanceByAddr ? $rootScope.balanceByAddr[addrinfo.addressStr] : 0, 'isChange': addrinfo.isChange, - 'owned': addrinfo.owned, + 'owned': addrinfo.owned }); } $scope.addresses = $scope.limitAddress($scope.addresses); diff --git a/js/models/Async.js b/js/models/Async.js index 0a429295a..217eb9869 100644 --- a/js/models/Async.js +++ b/js/models/Async.js @@ -377,7 +377,6 @@ Network.prototype.send = function(dest, payload, cb) { var message = this.encode(to, payload); this.socket.emit('message', message); - } if (typeof cb === 'function') cb(); @@ -406,6 +405,4 @@ Network.prototype.lockIncommingConnections = function(allowedCopayerIdsArray) { } }; - - module.exports = Network; diff --git a/js/models/PublicKeyRing.js b/js/models/PublicKeyRing.js index 071d35133..9512986ed 100644 --- a/js/models/PublicKeyRing.js +++ b/js/models/PublicKeyRing.js @@ -496,17 +496,15 @@ PublicKeyRing.prototype.getAddressesInfoForIndex = function(index, opts, copayer opts = opts || {}; var isOwned = index.copayerIndex === HDPath.SHARED_INDEX || index.copayerIndex === copayerIndex; var ret = []; - var appendAddressInfo = function(address, isChange, index) { + var appendAddressInfo = function(address, isChange) { ret.unshift({ address: address, addressStr: address.toString(), isChange: isChange, - owned: isOwned, - //index: index.copayerIndex + owned: isOwned }); }; - for (var i = 0; !opts.excludeChange && i < index.changeIndex; i++) { appendAddressInfo(this.getAddress(i, true, index.copayerIndex), true); }