jakiestfu / Context.js

Contextual Menus with Twitters Bootstrap.css
http://lab.jakiestfu.com/contextjs/
248 stars 62 forks source link

Get attached object details in callback #20

Open marc-gist opened 9 years ago

marc-gist commented 9 years ago

when you do context.attach('selector', ...). Is there a way inside the menu items callback function to get the DOM object of the item that you right clicked on?

AchoArnold commented 9 years ago

@marc-gist Presently, there is no way to do that. There is an issue for this bug.

Checkout this pull request which addresses this problem.

marc-gist commented 9 years ago

thanks @najela , but that solution must be for a much older context.js as it doesn't merge easily into the current code base :(