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

index 17f8db2f51bac341a135d8ffbe5410aada5ba54c..b8affd16838fcc3dab18dd47e866085fd54d1296 100644 (file)
@@ -64,9 +64,7 @@ $.widget( "ui.menu", {
                        "focus": function( event ) {
                                this.focus( event, $( event.target ).children( ".ui-menu-item:first" ) );
                        },
-                       "blur": function( event ) {
-                               this.collapseAll( event );
-                       }
+                       "blur": "collapseAll"
                });
 
                this.refresh();