I have problem with my menu bar items getting stack in the wrong stat. so I am trying manually to set there state depends on the mouse events. However something is not working I have tried:
dijit.byId("someDiv")._setStateClass(this.selected=false);
dijit.byId("someDiv")._set(“selected”, false);
dijit.byId("someDiv")._set(“active”, false);
url: http://dojotoolkit.org/api/ in dijit.MenuBarItem
Thanks
Looking at the source for _MenuBase and MenuBar, you want to emulate the behavior they get from:
menuBar.focusChildto set the focus and then a combination ofcloseChild()andonItemUnhover()to remove it.From
closeChild()you can tryand from
onItemUnhover()try