rem: var label = getMsgFrom(bundle, "cmd." + name + ".label", null, labelDefault); var help  = getMsgFrom(bundle, "cmd." + name + ".help", null, helpDefault); 
add: var label = getMsgFrom(bundle, "cmd." + name + ".label", null, labelDefault); var help  = getMsgFrom(bundle, "cmd." + name + ".help", null, helpDefault); 
context: function cmgr_defcmds (cmdary){    var len = cmdary.length;    var commands = new Object();    var bundle =  ("stringBundle" in cmdary ?                   cmdary.stringBundle :                    this.defaultBundle);        for (var i = 0; i < len; ++i)    {        var name  = cmdary[i][0];        var func  = cmdary[i][1];        var flags = cmdary[i][2];        var usage = getMsgFrom(bundle, "cmd." + name + ".params", null, "");        var helpDefault;        var labelDefault = name;        var aliasFor;        if (flags & CMD_NO_HELP)            helpDefault = MSG_NO_HELP;        if (typeof func == "string")        {            var ary = func.match(/(\S+)/);            if (ary)                aliasFor = ary[1];            helpDefault = getMsg (MSN_DEFAULT_ALIAS_HELP, func);             labelDefault = getMsgFrom (bundle,                                       "cmd." + aliasFor + ".label", null, name);        }        var label = getMsgFrom(bundle,                               "cmd." + name + ".label", null, labelDefault);        var help  = getMsgFrom(bundle,                               "cmd." + name + ".help", null, helpDefault);        var keystr = getMsgFrom (bundle, "cmd." + name + ".key", null, "");        var command = new CommandRecord (name, func, usage, help, label, flags,                                         keystr);        if (aliasFor)            command.aliasFor = aliasFor;        this.addCommand(command);        commands[name] = command;    }    return commands;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/5729506acb85fa9ecb10b8c82c3c5a0163f7df6b/command-manager.js/clean/extensions/venkman/resources/content/command-manager.js