mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-06 20:55:30 +02:00
Use new menu stack code
This commit is contained in:
parent
ea0ec9ae4e
commit
c2cbc7913c
1 changed files with 2 additions and 2 deletions
|
@ -106,7 +106,7 @@ function Client(input, output) {
|
||||||
|
|
||||||
Object.defineProperty(this, 'currentMenuModule', {
|
Object.defineProperty(this, 'currentMenuModule', {
|
||||||
get : function() {
|
get : function() {
|
||||||
return self.menuStack.getCurrentModule();
|
return self.menuStack.currentModule;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -423,7 +423,7 @@ Client.prototype.end = function () {
|
||||||
this.term.disconnect();
|
this.term.disconnect();
|
||||||
}
|
}
|
||||||
|
|
||||||
var currentModule = this.menuStack.getCurrentModule();
|
var currentModule = this.menuStack.getCurrentModule;
|
||||||
|
|
||||||
if(currentModule) {
|
if(currentModule) {
|
||||||
currentModule.leave();
|
currentModule.leave();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue