now plugins can be read on runtime
This commit is contained in:
parent
e4f5862576
commit
93b287bedc
5 changed files with 67 additions and 41 deletions
|
|
@ -64,8 +64,10 @@ angular.module('copayApp.controllers').controller('HomeWalletController', functi
|
|||
|
||||
$scope.$on("$destroy", function() {
|
||||
var w = $rootScope.wallet;
|
||||
removeWatch();
|
||||
w.removeListener('txProposalEvent', _updateTxs);
|
||||
if (w) {
|
||||
removeWatch();
|
||||
w.removeListener('txProposalEvent', _updateTxs);
|
||||
};
|
||||
});
|
||||
|
||||
$scope.setAlternativeAmount = function(w, tx, cb) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue