context: function mmgr_newitems (parentNode, beforeNode, menuItems){    function itemAttribs()    {        return (1 in menuItems[i]) ? menuItems[i][1] : null;    };    var parentId = parentNode.getAttribute("id");        for (var i in menuItems)    {        var itemName = menuItems[i][0];        if (itemName[0] == ">")        {            itemName = itemName.substr(1);            if (!ASSERT(itemName in this.menuSpecs,                        "unknown submenu " + itemName + " referenced in " +                        parentId))            {                continue;            }            this.createMenu (parentNode, beforeNode, itemName,                             parentId + ":" + itemName, itemAttribs());        }        else if (itemName in this.commandManager.commands)        {            this.appendMenuItem (parentNode, beforeNode, itemName,                                 itemAttribs());        }        else if (itemName == "-")        {            this.appendMenuSeparator (parentNode, beforeNode, itemAttribs());        }        else        {            dd ("unknown command " + itemName + " referenced in " + parentId);        }    }        }
meta: 1622	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1622/1c8d8bf9357639bb28c9901382136c486c9b6f60/menu-manager.js/clean/js/lib/menu-manager.js