]> source.dussan.org Git - jquery-ui.git/commitdiff
Widget delegation: Further simplify menu code
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Thu, 28 Jul 2011 13:52:52 +0000 (15:52 +0200)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Thu, 28 Jul 2011 13:52:52 +0000 (15:52 +0200)
ui/jquery.ui.menu.js

index 7cfa61f868900c752676514a58be16a391483021..17f8db2f51bac341a135d8ffbe5410aada5ba54c 100644 (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" ) );
                        },