Menu: Don't remove the icon elements on destroy since they exist in the original markup

This commit is contained in:
kborchers
2012-05-31 19:54:12 -05:00
parent e0fe788ee0
commit 94d87c8ad6

View 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" );