Skip to content
Permalink
Browse files

Menu: Add default null callbacks and update unit tests

  • Loading branch information...
kborchers committed Feb 27, 2012
1 parent 1e291c9 commit 4da7ec37ac7e5b4dd34593ba850200ccf4f4bf8c
Showing with 10 additions and 2 deletions.
  1. +4 −1 tests/unit/menu/menu_defaults.js
  2. +6 −1 ui/jquery.ui.menu.js
@@ -8,6 +8,9 @@ commonWidgetTests( "menu", {
},

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

0 comments on commit 4da7ec3

Please sign in to comment.
You can’t perform that action at this time.