Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass options object to item.events handlers in event.data #72

Merged
merged 2 commits into from
Aug 31, 2012
Merged

Pass options object to item.events handlers in event.data #72

merged 2 commits into from
Aug 31, 2012

Conversation

dtex
Copy link
Contributor

@dtex dtex commented Aug 30, 2012

I want to be able to access the $trigger element in the items.events handlers.

In my case, when a user triggers a change event on an input type=select I want my change handler to know which dom element triggered the contextual menu.

Passing this to the jQuery event exposes it within the handler as:

e.data.$trigger

I want to be able to access the $trigger element in the items.events handlers. 

In my case, when a user triggers a change event on an input type=select I want my change handler to know which dom element triggered the contextual menu.

Passing this to the jQuery event exposes it within the handler as:

e.data.$trigger 

At first blush this seems like an awful lot to pass along to the handler, but it mimics the behavior of item.callback
rodneyrehm added a commit that referenced this pull request Aug 31, 2012
Adding context menu options to input command events
@rodneyrehm rodneyrehm merged commit cb49c85 into swisnl:gh-pages Aug 31, 2012
@rodneyrehm
Copy link
Contributor

Thanks for the fix. It is merged and released with jQuery contextMenu v1.5.24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants