* New concept of saved states. Modules will be called before enter to restore a saved state (if applicable) and before leave to save one.
This commit is contained in:
@@ -185,6 +185,7 @@ require('util').inherits(MenuModule, PluginModule);
|
||||
|
||||
require('./mod_mixins.js').ViewControllerManagement.call(MenuModule.prototype);
|
||||
|
||||
|
||||
MenuModule.prototype.enter = function(client) {
|
||||
this.client = client;
|
||||
assert(_.isObject(client));
|
||||
@@ -198,6 +199,14 @@ MenuModule.prototype.enter = function(client) {
|
||||
this.initSequence();
|
||||
};
|
||||
|
||||
MenuModule.prototype.getSaveState = function() {
|
||||
// nothing in base
|
||||
};
|
||||
|
||||
MenuModule.prototype.restoreSavedState = function(savedState) {
|
||||
// nothing in base
|
||||
};
|
||||
|
||||
MenuModule.prototype.leave = function() {
|
||||
this.detachViewControllers();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user