jQuery showMenu before/after

jQuery showMenu before/after

Hi,

I am trying to highlight a table row when right clicking on it and remove the highlighting class after.

The before function is working, but not the after function.
The after function is not even invoked, why?

Thanks for any ideas how to solve this!!

jQuery(tablerow).showMenu({
                        opacity:0.8,
                        query: "#myRvMenu",
                        zindex: 2000,
                        before: function(e){
                                jQuery(tablerow).children().addClass('datahighlight');

                        after: function(e){
                              jQuery(tablerow).children().removeClass('datahighlight');
                        }
                    });