medialize/jQuery-contextMenu — Issue #32: Show/Hide events not fired
Author: gruppler
Created: 2012-02-21 20:47:49+00:00
State: open

When I set the events.show and events.hide, they are never fired. It looks like they're not actually making it into the 'opt' object (in other words, they're always the default empty anonymous function).

Here's what my code looks like:

```javascript
$.contextMenu({
selector: '#'+$container[0].id + ', #'+$container[0].id+' li > a',
zIndex: 2000,
events: {
show: function(){
console.log('show', this);
this.addClass('contextMenu');
},
hide: function(){
console.log('hide', this);
this.removeClass('contextMenu');
}
},
build: function(){
...
}
});
```