Menu: Add default null callbacks and update unit tests

This commit is contained in:
kborchers 2012-02-26 22:52:38 -06:00
parent 1e291c92cd
commit 4da7ec37ac
2 changed files with 10 additions and 2 deletions

View File

@ -8,6 +8,9 @@ commonWidgetTests( "menu", {
}, },
// callbacks // callbacks
create: null blur: null,
create: null,
focus: null,
select: null
} }
}); });

View File

@ -24,7 +24,12 @@ $.widget( "ui.menu", {
position: { position: {
my: "left top", my: "left top",
at: "right top" at: "right top"
} },
// callbacks
blur: null,
focus: null,
select: null
}, },
_create: function() { _create: function() {
this.activeMenu = this.element; this.activeMenu = this.element;