
Untitled
By: a guest on
Apr 15th, 2012 | syntax:
None | size: 0.58 KB | hits: 8 | expires: Never
StageAssistant.prototype.handleCommand = function(event) {
if (event.type == Mojo.Event.commandEnable &&
(event.command == Mojo.Menu.helpCmd || event.command == Mojo.Menu.prefsCmd)) {
event.stopPropagation();
}
if (event.type == Mojo.Event.command) {
switch (event.command) {
case Mojo.Menu.helpCmd:
Mojo.Controller.stageController.pushAppSupportInfoScene();
break;
case Mojo.Menu.prefsCmd:
this.controller.pushScene("preferences");
break;
}
}
}