(menu: MenuI, shouldOpen: boolean, animated: boolean, role: string)
| 175 | }; |
| 176 | |
| 177 | const _setOpen = async (menu: MenuI, shouldOpen: boolean, animated: boolean, role: string): Promise<boolean> => { |
| 178 | if (isAnimatingSync()) { |
| 179 | return false; |
| 180 | } |
| 181 | if (shouldOpen) { |
| 182 | const openedMenu = await getOpen(); |
| 183 | if (openedMenu && menu.el !== openedMenu) { |
| 184 | await openedMenu.setOpen(false, false); |
| 185 | } |
| 186 | } |
| 187 | return menu._setOpen(shouldOpen, animated, role); |
| 188 | }; |
| 189 | |
| 190 | const _createAnimation = (type: string, menuCmp: MenuI) => { |
| 191 | const animationBuilder = menuAnimations.get(type) as any; // TODO(FW-2832): type |
nothing calls this directly
no test coverage detected