Add prevMenuOnTimeout() method
This commit is contained in:
parent
39b35e8d11
commit
c5998aa343
|
@ -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!`);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue