Add prevMenuOnTimeout() method

This commit is contained in:
Bryan Ashby 2018-07-22 15:57:51 -06:00
parent 39b35e8d11
commit c5998aa343

View file

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