joewalnes/jquery-simple-context-menu — pull request #16 by lordarthas (2013-10-30 16:28:51+00:00)
Title: Callback beforeOpen to execute code before showing menu

This adds a callback which can be provided with:

$("#whatever").contextPopup({
beforeOpen : function(e) {
// Content
},
items: [
// ...
]
});

This is very useful in situation where you want to change something before actually showing the menu. For example I use it to select a table row (i.e. paint it orange) before showing the menu for it.