Widget delegation: Further simplify menu code

This commit is contained in:
Jörn Zaefferer 2011-07-28 15:52:52 +02:00
parent 02aad7b0ae
commit 9e2efe95b2

View File

@ -60,9 +60,7 @@ $.widget( "ui.menu", {
target.siblings().children( ".ui-state-active" ).removeClass( "ui-state-active" );
this.focus( event, target );
},
"mouseout .ui-menu-item": function( event ) {
this.blur( event );
},
"mouseout .ui-menu-item": "blur",
"focus": function( event ) {
this.focus( event, $( event.target ).children( ".ui-menu-item:first" ) );
},