joewalnes/jquery-simple-context-menu — Issue #7: passing id into action function()
Author: aburian
Created: 2012-02-09 03:33:58+00:00
State: open

I can't seem to find a way to use the id of the clicked parent so that I can pass it through the action: function().

For instance:
```html

```
```js
{label:'Wish List', icon:'icons/add.png', action:function() { addFavorite(this.id) } }
```
I can accomplish this by passing it into the createMenu(e, this.id); but I wasn't sure if this was already built into the system somewhere? Love the simplicity!