From 01292cb24135858caf9b66e77a31408be9a32fc7 Mon Sep 17 00:00:00 2001 From: Rafalages Date: Wed, 17 Jul 2013 15:48:10 -0300 Subject: [PATCH] Resetting activeRow when going to a non submenuSelector element I notice that when I hover an non activable element the "activeRow" wasn't resetted. --- jquery.menu-aim.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/jquery.menu-aim.js b/jquery.menu-aim.js index 0c32941..43b9368 100644 --- a/jquery.menu-aim.js +++ b/jquery.menu-aim.js @@ -166,6 +166,11 @@ options.deactivate(activeRow); } + if (! $(row).is(options.submenuSelector)){ + activeRow = null; + return; + } + options.activate(row); activeRow = row; };