From 94d87c8ad61be23ba17836e964ec28099ac21669 Mon Sep 17 00:00:00 2001 From: kborchers Date: Thu, 31 May 2012 19:54:12 -0500 Subject: Menu: Don't remove the icon elements on destroy since they exist in the original markup --- ui/jquery.ui.menu.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'ui/jquery.ui.menu.js') diff --git a/ui/jquery.ui.menu.js b/ui/jquery.ui.menu.js index 54a85abf5..6969eff50 100644 --- a/ui/jquery.ui.menu.js +++ b/ui/jquery.ui.menu.js @@ -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" ); -- cgit v1.2.3