Menu: Update the default visual test to use the new menus option that replaced the items option

This commit is contained in:
kborchers 2011-12-07 14:51:46 -06:00
parent 1748b5f404
commit aa8c4770a9

View File

@ -28,14 +28,14 @@
select: function(event, ui) { select: function(event, ui) {
$("<div/>").text("Selected: " + ui.item.text()).appendTo("#log"); $("<div/>").text("Selected: " + ui.item.text()).appendTo("#log");
}, },
items: "div" menus: "div"
}); });
$("#menu6").menu({ $("#menu6").menu({
select: function(event, ui) { select: function(event, ui) {
$("<div/>").text("Selected: " + ui.item.text()).appendTo("#log"); $("<div/>").text("Selected: " + ui.item.text()).appendTo("#log");
}, },
items: ".menuElement" menus: ".menuElement"
}); });
} }