no js/jquery guru but maybe unbind mouseenter and mouseleave events
$("#menu").menu(/*{
select: function( event, ui ) {
var selection = ui.item.text();
var get=this.event;
console.log(get);
}}*/);
$('#menu').unbind('mouseenter mouseleave');
$("#menu a").click(function() {
console.log($(this).text());
});
note the $('#menu').unbind('mouseenter mouseleave');
statement