Added a live selector#8
Conversation
This setting allows one to bind to a parent element while still only showing the contextmenu on specific child elements. This simplifies the case where child elements get added dynamically.
…r versions of IE.
|
Thanks for the contribution. Code looks good. Please can you add some documentation to the README explaining what it does and how to use it. Also a demo in the /demo/ dir would be good. Thanks |
|
I don't know if Github sends notifications when a commit gets added so I'll just put this here as a reminder :-p I thought about patching more events/hooks into contextmenu (mainly onFocus/onShow) to allow one to modify the DOM for the created menu (disabling entries come to mind). Will you pull that too? |
|
There you go :) |
Yes, I would pull those changes too - though best to wrap them up into a Thanks for all this! |
|
Okay I have a few changes for the action event/dynamic generation ready as soon as you pull this one. |
This setting allows one to bind to a parent element while still only showing the contextmenu on specific child elements.
This simplifies the case where child elements get added dynamically.
Since on() is used, jQuery 1.7 is required. I updated the example(s) to reflect that.