Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 15th, 2012  |  syntax: None  |  size: 0.58 KB  |  hits: 8  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. StageAssistant.prototype.handleCommand = function(event) {
  2.     if (event.type == Mojo.Event.commandEnable &&
  3.        (event.command == Mojo.Menu.helpCmd || event.command == Mojo.Menu.prefsCmd)) {
  4.         event.stopPropagation();
  5.     }
  6.     if (event.type == Mojo.Event.command) {
  7.         switch (event.command) {
  8.             case Mojo.Menu.helpCmd:
  9.                 Mojo.Controller.stageController.pushAppSupportInfoScene();
  10.                 break;
  11.             case Mojo.Menu.prefsCmd:
  12.                 this.controller.pushScene("preferences");
  13.                 break;
  14.         }
  15.     }
  16. }