aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.menu.js
diff options
context:
space:
mode:
authorTJ VanToll <tj.vantoll@gmail.com>2013-06-13 13:47:07 -0700
committerTJ VanToll <tj.vantoll@gmail.com>2013-06-16 22:37:36 -0400
commit91b7b9f9ab2e5baa31e37f34600457599409e161 (patch)
treec3cfb261dcfc0c7cc5260ce28a27130f8966f447 /ui/jquery.ui.menu.js
parentb5c41a2b33311d2de8f0b473cc454bd281ea0ad1 (diff)
downloadjquery-ui-91b7b9f9ab2e5baa31e37f34600457599409e161.tar.gz
jquery-ui-91b7b9f9ab2e5baa31e37f34600457599409e161.zip
Menu: Reset ui-menu-icons class in refresh. Fixes #9377: Menu: Refreshing should recheck for menu icons
Diffstat (limited to 'ui/jquery.ui.menu.js')
-rw-r--r--ui/jquery.ui.menu.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/jquery.ui.menu.js b/ui/jquery.ui.menu.js
index 1c641ebb6..5e44e81c4 100644
--- a/ui/jquery.ui.menu.js
+++ b/ui/jquery.ui.menu.js
@@ -282,6 +282,8 @@ $.widget( "ui.menu", {
icon = this.options.icons.submenu,
submenus = this.element.find( this.options.menus );
+ this.element.toggleClass( "ui-menu-icons", !!this.element.find( ".ui-icon" ).length );
+
// Initialize nested menus
submenus.filter( ":not(.ui-menu)" )
.addClass( "ui-menu ui-widget ui-widget-content ui-corner-all" )