I pass the data returned from getAccountsAsync to getDynamicGlobalPropertiesAsync function by setting a variable in this
and accessing this way:
function refreshAccountData(accountName,refresh=false) {
return steem.api.getAccountsAsync([accountName])
.then(function (result) {
...
this.accountData = result
...
steem.api.getDynamicGlobalPropertiesAsync()
.then(function (resultGlobal) {
result = this.accountData
...
It works perfect! Thanks for sharing this.