Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function AppAssistant() {}
- AppAssistant.prototype.handleLaunch = function(params)
- {
- var mainStageController = this.controller.getStageController('mainStage');
- try
- {
- if (!params)
- {
- if (mainStageController)
- {
- mainStageController.popScenesTo('change-log');
- mainStageController.activate();
- }
- else if (true) {
- this.controller.createStageWithCallback({name: 'mainStage', lightweight: true}, this.launchScene.bind(this));
- }
- else
- {
- Mojo.Controller.AppController.createStageWithCallback(name: 'stageAssistant', assistantName: "stage-assistant", lightweight: true);
- }
- }
- }
- catch (e)
- {
- Mojo.Log.logException(e, "AppAssistant#handleLaunch");
- }
- }
- };
- AppAssistant.prototype.launchScene = function(controller)
- {
- controller.pushScene('change-log');
- };
- // Local Variables:
- // tab-width: 4
- // End:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement