Another partial fix for #5188 - add ui-menu-item class only to list items with anchor-children

This commit is contained in:
Jörn Zaefferer 2010-02-16 16:34:06 +00:00
parent 4f4715017d
commit 8c1f4da31a

View File

@ -328,7 +328,7 @@ $.widget("ui.menu", {
var self = this;
// don't refresh list items that are already adapted
var items = this.element.children("li:not(.ui-menu-item)")
var items = this.element.children("li:not(.ui-menu-item):has(a)")
.addClass("ui-menu-item")
.attr("role", "menuitem");