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
create: null
blur: null,
create: null,
focus: null,
select: null
}
});

View 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;