]> source.dussan.org Git - jquery-ui.git/commitdiff
Menu: Add default null callbacks and update unit tests
authorkborchers <kris.borchers@gmail.com>
Mon, 27 Feb 2012 04:52:38 +0000 (22:52 -0600)
committerkborchers <kris.borchers@gmail.com>
Mon, 27 Feb 2012 04:52:38 +0000 (22:52 -0600)
tests/unit/menu/menu_defaults.js
ui/jquery.ui.menu.js

index bf41fb999f2c82ff9f09ac57fb41767adf8db1a4..018ac8ccfa6200f10f6665ba2796b1f258b7831e 100644 (file)
@@ -8,6 +8,9 @@ commonWidgetTests( "menu", {
                },
 
                // callbacks
-               create: null
+               blur: null,
+               create: null,
+               focus: null,
+               select: null
        }
 });
index 42829c2a14c15849242bbc8c9423b7fd22ff31a0..05ecd3feb708afc8b11f98f24848e6c38973f20e 100644 (file)
@@ -24,7 +24,12 @@ $.widget( "ui.menu", {
                position: {
                        my: "left top",
                        at: "right top"
-               }
+               },
+
+               // callbacks
+               blur: null,
+               focus: null,
+               select: null
        },
        _create: function() {
                this.activeMenu = this.element;