From: maggiewachs Date: Thu, 24 Feb 2011 16:46:51 +0000 (-0500) Subject: Removed active state when menu closes X-Git-Tag: 1.9m5~269 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f73466a3209f0241a78a550ec89395caa490256a;p=jquery-ui.git Removed active state when menu closes --- diff --git a/ui/jquery.ui.menu.js b/ui/jquery.ui.menu.js index 93b75326f..f51c261d4 100644 --- a/ui/jquery.ui.menu.js +++ b/ui/jquery.ui.menu.js @@ -256,7 +256,9 @@ $.widget("ui.menu", { }, closeAll: function() { - this.element.find("ul").hide(); + this.element + .find("ul").hide().end() + .find("a.ui-state-active").removeClass("ui-state-active"); this.blur(); this.activeMenu = this.element; },