now plugins can be read on runtime

This commit is contained in:
Matias Alejo Garcia 2014-12-05 14:23:33 -03:00
commit 93b287bedc
5 changed files with 67 additions and 41 deletions

View file

@ -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) {