Context.js icon indicating copy to clipboard operation
Context.js copied to clipboard

Get attached object details in callback

Open marc-gist opened this issue 10 years ago • 2 comments

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 avatar Feb 23 '15 01:02 marc-gist

@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.

AchoArnold avatar Feb 23 '15 08:02 AchoArnold

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

marc-gist avatar Feb 23 '15 12:02 marc-gist