protected void menuTriggerLogic() { if (nearestMenu.timer.item == this || !nearestMenu.clickToggles) { if (nearestMenu.singletNavigation && parent != null) { parent.closeMyChildren(); menu.open(this); } else menu.open(this); } else if (nearestMenu.clickToggles) { if (nearestMenu.singletNavigation) { if (parent != null) { if (isOpen()) parent.closeMyChildren(); else { parent.closeMyChildren(); menu.open(this); } } } else toggleChildren(); } }
protected void toggleChildren() { if (isOpen) menu.close(this); else menu.open(this); }