added menu.is(':animated') test