Use new menu stack code

This commit is contained in:
Bryan Ashby 2016-07-25 00:58:27 -06:00
parent ea0ec9ae4e
commit c2cbc7913c
1 changed files with 2 additions and 2 deletions

View File

@ -106,7 +106,7 @@ function Client(input, output) {
Object.defineProperty(this, 'currentMenuModule', {
get : function() {
return self.menuStack.getCurrentModule();
return self.menuStack.currentModule;
}
});
@ -423,7 +423,7 @@ Client.prototype.end = function () {
this.term.disconnect();
}
var currentModule = this.menuStack.getCurrentModule();
var currentModule = this.menuStack.getCurrentModule;
if(currentModule) {
currentModule.leave();