From 4da7ec37ac7e5b4dd34593ba850200ccf4f4bf8c Mon Sep 17 00:00:00 2001 From: kborchers Date: Sun, 26 Feb 2012 22:52:38 -0600 Subject: [PATCH] Menu: Add default null callbacks and update unit tests --- tests/unit/menu/menu_defaults.js | 5 ++++- ui/jquery.ui.menu.js | 7 ++++++- 2 files changed, 10 insertions(+), 2 deletions(-) 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; -- 2.39.5