]> source.dussan.org Git - jquery-ui.git/commitdiff
Menu: Remove display property on hidden submenus instead of setting display:block...
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Mon, 3 Dec 2012 23:49:37 +0000 (00:49 +0100)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Mon, 3 Dec 2012 23:49:37 +0000 (00:49 +0100)
ui/jquery.ui.menu.js

index 45c1ec2e4b64722290aa11246a6feaf652d25ad1..26789594ded90e087a73c09b01ab8519a787ca65 100644 (file)
@@ -148,7 +148,9 @@ $.widget( "ui.menu", {
                                .removeAttr( "aria-hidden" )
                                .removeAttr( "aria-disabled" )
                                .removeUniqueId()
-                               .show();
+                               .css({
+                                       display: ""
+                               });
 
                // Destroy menu items
                this.element.find( ".ui-menu-item" )