mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Menu: Add default null callbacks and update unit tests
This commit is contained in:
parent
1e291c92cd
commit
4da7ec37ac
@ -8,6 +8,9 @@ commonWidgetTests( "menu", {
|
||||
},
|
||||
|
||||
// callbacks
|
||||
create: null
|
||||
blur: null,
|
||||
create: null,
|
||||
focus: null,
|
||||
select: null
|
||||
}
|
||||
});
|
||||
|
7
ui/jquery.ui.menu.js
vendored
7
ui/jquery.ui.menu.js
vendored
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user