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 >
Wrap
Text File
|
2006-08-07
|
452b
|
15 lines
function PROT_CommandController(commandHandlerMap) {
this.debugZone = "commandhandler";
this.cmds_ = commandHandlerMap;
}
PROT_CommandController.prototype.supportsCommand = function(cmd) {
return (cmd in this.cmds_);
}
PROT_CommandController.prototype.isCommandEnabled = function(cmd) {
return true;
}
PROT_CommandController.prototype.doCommand = function(cmd) {
return this.cmds_[cmd]();
}
PROT_CommandController.prototype.onEvent = function(cmd) { }