PDA

View Full Version : MenuMgr.onBeforeShow bug



JorisA
15 Jun 2007, 9:22 AM
Hi,

I think there's a bug in the MenuMgr class:

// private
function onBeforeShow(m){
var pm = m.parentMenu;
if(!pm && !m.allowOtherMenus){
hideAll();
}else if(pm && pm.activeChild){
pm.activeChild.hide();
}
}

if(!pm && !m.allowOtherMenus) should be if(pm && !m.allowOtherMenus)
(Hide other menu's if m is not a root menu > Hide others if parentmenu is set)

edit: hmmm maybe this is not a bug and am I just confused...
edit2: ok I'm pretty sure its not