diff options
author | kborchers <kris.borchers@gmail.com> | 2012-05-31 19:54:12 -0500 |
---|---|---|
committer | kborchers <kris.borchers@gmail.com> | 2012-05-31 19:54:12 -0500 |
commit | 94d87c8ad61be23ba17836e964ec28099ac21669 (patch) | |
tree | b49c14010d1356a3a111437202d295b599e32552 /ui/jquery.ui.menu.js | |
parent | e0fe788ee0c0c0d8d23f9d90b9acff713ba1302f (diff) | |
download | jquery-ui-94d87c8ad61be23ba17836e964ec28099ac21669.tar.gz jquery-ui-94d87c8ad61be23ba17836e964ec28099ac21669.zip |
Menu: Don't remove the icon elements on destroy since they exist in the original markup
Diffstat (limited to 'ui/jquery.ui.menu.js')
-rw-r--r-- | ui/jquery.ui.menu.js | 5 |
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" ); |