Skip to content

Commit 4da7ec3

Browse files
committed
Menu: Add default null callbacks and update unit tests
1 parent 1e291c9 commit 4da7ec3

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

tests/unit/menu/menu_defaults.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ commonWidgetTests( "menu", {
88
},
99

1010
// callbacks
11-
create: null
11+
blur: null,
12+
create: null,
13+
focus: null,
14+
select: null
1215
}
1316
});

ui/jquery.ui.menu.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,12 @@ $.widget( "ui.menu", {
2424
position: {
2525
my: "left top",
2626
at: "right top"
27-
}
27+
},
28+
29+
// callbacks
30+
blur: null,
31+
focus: null,
32+
select: null
2833
},
2934
_create: function() {
3035
this.activeMenu = this.element;

0 commit comments

Comments
 (0)