summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/lib/account/AccountView.js
diff options
context:
space:
mode:
Diffstat (limited to 'StoneIsland/www/js/lib/account/AccountView.js')
-rwxr-xr-xStoneIsland/www/js/lib/account/AccountView.js11
1 files changed, 8 insertions, 3 deletions
diff --git a/StoneIsland/www/js/lib/account/AccountView.js b/StoneIsland/www/js/lib/account/AccountView.js
index c9a94311..9e6f1714 100755
--- a/StoneIsland/www/js/lib/account/AccountView.js
+++ b/StoneIsland/www/js/lib/account/AccountView.js
@@ -21,11 +21,16 @@ var AccountView = View.extend({
ccs: [],
ccLookup: {},
- listAddresses: function(cb){
+ listAddresses: function(opt){
sdk.address.list({
success: function(data){
- this.populateAddresses(data, cb)
- }.bind(this)
+ this.populateAddresses(data, opt.success)
+ }.bind(this),
+ error: function(data){
+ console.log("error listing addresses!")
+ console.log(data.responseText)
+ opt.error && opt.error()
+ }.bind(this),
})
},