this.menu.menu({
onClick: function (item) {
var action = item.href.substr(1);
var mi = null;
onclick(action, id, self.items[action]);
}
});
The Item should give you the item that you created for the menu. item.href will be typically, the action behind the item.