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

Fixes #5684 - Unset the complete function just before calling it to avoid an exception creating a loop #520

Closed
wants to merge 2 commits into from

Conversation

gnarf
Copy link
Member

@gnarf gnarf commented Sep 27, 2011

If an exception occurs in the complete function, it will still halt this timer loop, however since the function is being cleared out of the options object before being called it will not call the complete a second time.

http://jqbug.com/5684

@gnarf
Copy link
Member Author

gnarf commented Sep 27, 2011

I can't think of any way we can actually unit test this...

http://jsfiddle.net/X2gEP/2/ is the test case I was using.

@timmywil
Copy link
Member

Landed in commit 8dda57f.

@timmywil timmywil closed this Sep 28, 2011
@marcheidemann
Copy link

hi might me not the right case, would like to report it though -> this crashes still in infinity

http://jsfiddle.net/X2gEP/3/

mescoda pushed a commit to mescoda/jquery that referenced this pull request Nov 4, 2014
…ling it to avoid an exception creating a loop. Fixes #5684.

More Details:
 - jquery#520
 - http://bugs.jquery.com/ticket/5684
@lock lock bot locked as resolved and limited conversation to collaborators Jan 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants