]> source.dussan.org Git - jquery-ui.git/commitdiff
Menu: Don't remove the icon elements on destroy since they exist in the original...
authorkborchers <kris.borchers@gmail.com>
Fri, 1 Jun 2012 00:54:12 +0000 (19:54 -0500)
committerkborchers <kris.borchers@gmail.com>
Fri, 1 Jun 2012 00:54:12 +0000 (19:54 -0500)
ui/jquery.ui.menu.js

index 54a85abf59e0b60160761859a0645927c9ac6689..6969eff50657fcb46a8f548ca67ac59ec0450a3c 100644 (file)
@@ -157,10 +157,7 @@ $.widget( "ui.menu", {
                                .removeClass( "ui-corner-all ui-state-hover" )
                                .removeAttr( "tabIndex" )
                                .removeAttr( "role" )
-                               .removeAttr( "aria-haspopup" )
-                               // TODO: is this correct? Don't these exist in the original markup?
-                               .children( ".ui-icon" )
-                                       .remove();
+                               .removeAttr( "aria-haspopup" );
 
                // unbind currentEventTarget click event handler
                $( currentEventTarget ).unbind( "click.menu" );