From: Jörn Zaefferer Date: Thu, 28 Jul 2011 13:52:52 +0000 (+0200) Subject: Widget delegation: Further simplify menu code X-Git-Tag: 1.9m6~91^2~4 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9e2efe95b2f130778a43a441e157c6ecf5197c1a;p=jquery-ui.git Widget delegation: Further simplify menu code --- diff --git a/ui/jquery.ui.menu.js b/ui/jquery.ui.menu.js index 7cfa61f86..17f8db2f5 100644 --- a/ui/jquery.ui.menu.js +++ b/ui/jquery.ui.menu.js @@ -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" ) ); },