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

Changing bind to live, so that dynamic generated components can also generate events #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gonvaled
Copy link

@gonvaled gonvaled commented Nov 2, 2011

I had a problem with dynamic generated content, and had to workaround it (see discussion here: http://stackoverflow.com/questions/7982493/event-listeners-for-dynamic-content-in-evently)

I have only patched jquery.evently.js. Maybe other files are also of interest. I used this, in case you want to extend this to other files:

cat jquery.evently.js | sed -e 's!.bind(!.live(!'

@mafo5
Copy link

mafo5 commented Mar 28, 2012

The problem with the live event is, that it will bind all events to its parents and so on. We have used your changed evently.js and ran into multiple event trigger when calling same code over and over.

Maybe the "on" binding is a better solution. Don't know if this will fix your problem.

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