Skip to content

Instantly share code, notes, and snippets.

@niksilver
Created March 10, 2010 23:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save niksilver/328569 to your computer and use it in GitHub Desktop.
Save niksilver/328569 to your computer and use it in GitHub Desktop.
EditTaskAssistant.prototype.popScene = function(wasCancelled) {
Mojo.Log.info("EditTaskAssistant.popScene: Entering");
if (this.config.task.name == '') {
// Don't allow a blank name to be entered
this.config.task.name = this.savedTaskProperties.name;
}
this.config.task.update();
Mojo.Controller.stageController.popScene({
lastScene: 'EditTask',
task: this.config.task,
isNew: this.config.isNew,
wasCancelled: wasCancelled
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment