mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-11 07:04:32 +02:00
Add prevMenuOnTimeout() method
This commit is contained in:
parent
39b35e8d11
commit
c5998aa343
1 changed files with 6 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue