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

Commits on Aug 30, 2012

  1. Passing opt as data to jQuery.Event

    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
    dtex committed Aug 30, 2012
    Configuration menu
    Copy the full SHA
    5882e2a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e91d792 View commit details
    Browse the repository at this point in the history