home *** CD-ROM | disk | FTP | other *** search
/ Minami 83 / MINAMI83.iso / Extra / DivXInstaller.exe / $PLUGINSDIR / GoogleToolbarFirefox.msi / xpi / amulet-jslib / firefox-commands.js < prev    next >
Text File  |  2006-08-07  |  452b  |  15 lines

  1. function PROT_CommandController(commandHandlerMap) {
  2. this.debugZone = "commandhandler";
  3. this.cmds_ = commandHandlerMap;
  4. }
  5. PROT_CommandController.prototype.supportsCommand = function(cmd) {
  6. return (cmd in this.cmds_);
  7. }
  8. PROT_CommandController.prototype.isCommandEnabled = function(cmd) {
  9. return true;
  10. }
  11. PROT_CommandController.prototype.doCommand = function(cmd) {
  12. return this.cmds_[cmd]();
  13. }
  14. PROT_CommandController.prototype.onEvent = function(cmd) { }
  15.