+ stats.js: public APIs for accessing various system stats. Probably needs a better name

* Fix pause placement. Wait for all views ready before placing cursor such that the prompt will display in the right spot
This commit is contained in:
Bryan Ashby 2015-07-28 22:31:28 -06:00
parent 4a342ba2fa
commit 44a0f87a24
5 changed files with 116 additions and 47 deletions

View file

@ -152,7 +152,7 @@ function getThemeArt(name, themeID, options, cb) {
options.random = miscUtil.valueWithDefault(options.random, true);
options.basePath = paths.join(Config.paths.themes, themeID);
art.getArt(name, options, function onThemeArt(err, artInfo) {
art.getArt(name, options, function onThemeArt(err, artInfo) {
if(err) {
// try fallback of art directory
options.basePath = Config.paths.art;
@ -227,7 +227,7 @@ function displayThemedPause(options, cb) {
callback(new Error('Missing standard \'pause\' prompt'))
}
}
});
});
},
function displayPausePrompt(callback) {
displayThemedAsset(