From f585c327886e402f4751edae2f0e8414300d7373 Mon Sep 17 00:00:00 2001 From: Magnus Wolffelt Date: Wed, 5 Jun 2013 17:01:37 +0300 Subject: [PATCH] Should clear any pending activation when leaving an element Not clearing the timeout will result in delayed unwanted activation when you have a menu with "blank" areas, meaning where no other activation occurs, but you are still inside the menu container. --- jquery.menu-aim.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/jquery.menu-aim.js b/jquery.menu-aim.js index 0c32941..9e5e2e9 100644 --- a/jquery.menu-aim.js +++ b/jquery.menu-aim.js @@ -144,6 +144,10 @@ possiblyActivate(this); }, mouseleaveRow = function() { + if (timeoutId) { + // Cancel any pending activation + clearTimeout(timeoutId); + } options.exit(this); };