From 048664b4afafdc193f92adac4c4d6732d532fd84 Mon Sep 17 00:00:00 2001 From: Manuel Araoz Date: Tue, 9 Sep 2014 11:23:21 -0700 Subject: [PATCH] fix some karma tests after rebase --- js/controllers/send.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/js/controllers/send.js b/js/controllers/send.js index 45386f1b1..683b6c71c 100644 --- a/js/controllers/send.js +++ b/js/controllers/send.js @@ -80,7 +80,6 @@ angular.module('copayApp.controllers').controller('SendController', } $scope.showAddressBook = function() { - var w = w; var flag; if (w) { for (var k in w.addressBook) { @@ -121,8 +120,6 @@ angular.module('copayApp.controllers').controller('SendController', var amount = parseInt((form.amount.$modelValue * w.settings.unitToSatoshi).toFixed(0)); var commentText = form.comment.$modelValue; - var w = w; - function done(err, ntxid, merchantData) { if (err) { var message = 'The transaction' + (w.isShared() ? ' proposal' : '') + ' could not be created'; @@ -349,7 +346,6 @@ angular.module('copayApp.controllers').controller('SendController', } $scope.toggleAddressBookEntry = function(key) { - var w = w; w.toggleAddressBookEntry(key); }; @@ -384,7 +380,6 @@ angular.module('copayApp.controllers').controller('SendController', }); modalInstance.result.then(function(entry) { - var w = w; $timeout(function() { $scope.loading = false; @@ -421,7 +416,6 @@ angular.module('copayApp.controllers').controller('SendController', $scope.send = function(ntxid, cb) { $scope.loading = true; $rootScope.txAlertCount = 0; - var w = w; w.sendTx(ntxid, function(txid, merchantData) { if (!txid) { notification.error('Error', 'There was an error sending the transaction'); @@ -446,7 +440,6 @@ angular.module('copayApp.controllers').controller('SendController', $scope.sign = function(ntxid) { $scope.loading = true; - var w = w; w.sign(ntxid, function(ret) { if (!ret) { notification.error('Error', 'There was an error signing the transaction'); @@ -466,7 +459,6 @@ angular.module('copayApp.controllers').controller('SendController', $scope.reject = function(ntxid) { $scope.loading = true; $rootScope.txAlertCount = 0; - var w = w; w.reject(ntxid); notification.warning('Transaction rejected', 'You rejected the transaction successfully'); $scope.loading = false;