add:  if (!("uiElements" in this.menuSpecs[id])) this.menuSpecs[id].uiElements = [popup]; else if (!arrayContains(this.menuSpecs[id].uiElements, popup)) this.menuSpecs[id].uiElements.push(popup); 
context: function mmgr_initcx (document, id){    if (!document.getElementById(id))    {        if (!ASSERT(id in this.menuSpecs, "unknown context menu " + id))            return;        var dp = document.getElementById("dynamic-popups");        var popup = this.appendPopupMenu (dp, null, id, id);        var items = this.menuSpecs[id].items;        this.createMenuItems (popup, null, items);    }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/2185ea40464d50ff8d87ff546770317fff5da030/menu-manager.js/buggy/extensions/irc/js/lib/menu-manager.js