]> source.dussan.org Git - jquery-ui.git/commitdiff
Removed active state when menu closes
authormaggiewachs <maggie@filamentgroup.com>
Thu, 24 Feb 2011 16:46:51 +0000 (11:46 -0500)
committermaggiewachs <maggie@filamentgroup.com>
Thu, 24 Feb 2011 16:46:51 +0000 (11:46 -0500)
ui/jquery.ui.menu.js

index 93b75326f8b44ab710781c2bc228c2f7c9ce8698..f51c261d44e5bcfe893699f63c14b08e48595237 100644 (file)
@@ -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;
        },