aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkborchers <kris.borchers@gmail.com>2012-05-31 19:54:12 -0500
committerkborchers <kris.borchers@gmail.com>2012-05-31 19:54:12 -0500
commit94d87c8ad61be23ba17836e964ec28099ac21669 (patch)
treeb49c14010d1356a3a111437202d295b599e32552
parente0fe788ee0c0c0d8d23f9d90b9acff713ba1302f (diff)
downloadjquery-ui-94d87c8ad61be23ba17836e964ec28099ac21669.tar.gz
jquery-ui-94d87c8ad61be23ba17836e964ec28099ac21669.zip
Menu: Don't remove the icon elements on destroy since they exist in the original markup
-rw-r--r--ui/jquery.ui.menu.js5
1 files changed, 1 insertions, 4 deletions
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" );