diff options
author | kborchers <kris.borchers@gmail.com> | 2012-02-26 22:52:38 -0600 |
---|---|---|
committer | kborchers <kris.borchers@gmail.com> | 2012-02-26 22:52:38 -0600 |
commit | 4da7ec37ac7e5b4dd34593ba850200ccf4f4bf8c (patch) | |
tree | 664c00767b825e7050cf4aaa4e2c4a3e61206b26 | |
parent | 1e291c92cd1a90f2a2ad5796f1ccace615538098 (diff) | |
download | jquery-ui-4da7ec37ac7e5b4dd34593ba850200ccf4f4bf8c.tar.gz jquery-ui-4da7ec37ac7e5b4dd34593ba850200ccf4f4bf8c.zip |
Menu: Add default null callbacks and update unit tests
-rw-r--r-- | tests/unit/menu/menu_defaults.js | 5 | ||||
-rw-r--r-- | 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; |