Hi all,
I have a little problem with dijit.Menu. This is my method of its construction :
function menu(id){
if(dijit.byId("progMenu"))dijit.byId("progMenu").destroy();
var pMenu = new dijit.Menu({id:"progMenu"});
pMenu.addChild(new dijit.MenuItem({label:"Enable"}));
pMenu.addChild(new dijit.MenuItem({label:"Disable"}));
pMenu.addChild(new dijit.MenuSeparator());
pMenu.addChild(new dijit.MenuItem({label:"Remove"}));
pMenu.bindDomNode(dojo.byId(id));
}
I have two divs with onclick="menu(div's id)".
