Changing bind to live, so that dynamic generated components can also generate events#9
Open
gonvaled wants to merge 1 commit intojchris:masterfrom
Open
Changing bind to live, so that dynamic generated components can also generate events#9gonvaled wants to merge 1 commit intojchris:masterfrom
gonvaled wants to merge 1 commit intojchris:masterfrom
Conversation
|
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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(!'