MenuManager.createContextMenu Member

Syntax

object.createContextMenu(document, id);

Arguments

ArgumentSummary
document
id

Returns

Remarks

See Also

Source Code

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);
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);
}
}