Fix "Maximum call stack size exceeded" error

A dirty hack to wait for loading of wallet users list without "Maximum call stack size exceeded" error. It would be better to call `initWhoToFollow` after `loadFollowing` method is executed, but there is adventure of `setTimeout`: it reduces CPU usage if there are no users to suggest.
This commit is contained in:
Denis Ryabov 2015-04-24 21:54:08 +03:00
parent 658cb76b15
commit 4ef977c78a

View File

@ -590,8 +590,11 @@ function processSuggestion(arg, suggestion, followedBy) {
$list.append(item).show();
$module.find('.refresh-users').show();
$module.find('.loading-roller').hide();
} else
} else {
setTimeout(function(){
getRandomFollowSuggestion(processSuggestion);
}, 100);
}
}
function closeSearchDialog()