From: kborchers Date: Mon, 27 Feb 2012 04:52:38 +0000 (-0600) Subject: Menu: Add default null callbacks and update unit tests X-Git-Tag: 1.9m7~32 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4da7ec37ac7e5b4dd34593ba850200ccf4f4bf8c;p=jquery-ui.git Menu: Add default null callbacks and update unit tests --- diff --git a/tests/unit/menu/menu_defaults.js b/tests/unit/menu/menu_defaults.js index bf41fb999..018ac8ccf 100644 --- a/tests/unit/menu/menu_defaults.js +++ b/tests/unit/menu/menu_defaults.js @@ -8,6 +8,9 @@ commonWidgetTests( "menu", { }, // callbacks - create: null + blur: null, + create: null, + focus: null, + select: null } }); diff --git a/ui/jquery.ui.menu.js b/ui/jquery.ui.menu.js index 42829c2a1..05ecd3feb 100644 --- a/ui/jquery.ui.menu.js +++ b/ui/jquery.ui.menu.js @@ -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;