* More work on MenuStack

This commit is contained in:
Bryan Ashby 2015-11-03 16:42:11 -07:00
parent 64e9b9b057
commit 15ce69e02c
2 changed files with 47 additions and 22 deletions

View file

@ -216,6 +216,18 @@ MenuModule.prototype.restoreSavedState = function(savedState) {
// nothing in base
};
MenuModule.prototype.nextMenu = function(cb) {
self.client.menuStack.next(cb);
};
MenuModule.prototype.prevMenu = function(cb) {
self.client.menuStack.prev(cb);
};
MenuModule.prototype.gotoMenu = function(name, options, cb) {
self.client.menuStack.goto(name, options, cb);
};
MenuModule.prototype.leave = function() {
this.detachViewControllers();
};