Context.js
Context.js copied to clipboard
Get attached object details in callback
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?
@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.
thanks @najela , but that solution must be for a much older context.js as it doesn't merge easily into the current code base :(