Add prevMenuOnTimeout() method

This commit is contained in:
Bryan Ashby 2018-07-22 15:57:51 -06:00
parent 39b35e8d11
commit c5998aa343
1 changed files with 6 additions and 0 deletions

View File

@ -193,6 +193,12 @@ exports.MenuModule = class MenuModule extends PluginModule {
return this.client.menuStack.goto(prevMenu.name, cb); return this.client.menuStack.goto(prevMenu.name, cb);
} }
prevMenuOnTimeout(timeout, cb) {
setTimeout( () => {
return this.prevMenu(cb);
}, timeout);
}
addViewController(name, vc) { addViewController(name, vc) {
assert(!this.viewControllers[name], `ViewController by the name of "${name}" already exists!`); assert(!this.viewControllers[name], `ViewController by the name of "${name}" already exists!`);