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

when the node list update,the event can't update #35

Open
Wteakenji opened this issue Jul 11, 2019 · 0 comments
Open

when the node list update,the event can't update #35

Wteakenji opened this issue Jul 11, 2019 · 0 comments

Comments

@Wteakenji
Copy link

for example,

before running the code below,
$('div.goo').length is 5,
$('div.goo).contextMenu(menu2,{triggerOn:'contextmenu'});
but after ,i add one div.goo node,but the event on the new one is not effected
my question is how to fix this porblem.
as we know,in jquery ,we can use "$('body').on('click','div.goo',function() {})" to solve "how to   dynamically bind dom evnt",
but in your contextMenu.js,what should i do?

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

No branches or pull requests

1 participant