How to use third party js control of the queue execution animation?

There are simple animations on the site, hover mouse on the menu item reveals a submenu, remove the mouse, is hiding. To Alasania fast the mouse the animation is not repeated a bunch of times, put the control queue of the animation:
$("#main-menu li").hover(function() {
$(this)
 .stop(false, true)
 .queue('fx', 
function(){
$(this).children("ul").toggle("slow")
.dequeue('fx');
});
});


Everything works as it should, but sometimes when fast Alasania reappears full of glitch and the menu it just might stop disclosed. How can I avoid this?

Example script here: http://9co.ru (left menu)
September 26th 19 at 06:47
2 answers
September 26th 19 at 06:49
Solution
Somehow you are hard done...
jsfiddle.net/nd46j
September 26th 19 at 06:51
better make that delay closing, and she's not gonna slow down

Find more questions by tags JavaScriptjQuery