Skip to content

Conversation

@stevemao
Copy link
Contributor

@stevemao stevemao commented Sep 25, 2016

Summary

Checklist

Mark an [x] for completed items, if you're not sure leave them unchecked and we can assist.

See gh-3285

@mention-bot
Copy link

@stevemao, thanks for your PR! By analyzing the annotation information on this pull request, we identified @jrburke, @dmethvin and @markelog to be potential reviewers

@markelog
Copy link
Member

What you trying to fix?

@stevemao
Copy link
Contributor Author

@markelog see #3285

@markelog
Copy link
Member

I see – LGTM

@timmywil timmywil modified the milestone: 3.2.0 Sep 27, 2016
@timmywil timmywil self-assigned this Oct 3, 2016
// has been decremented by readywaitloader.js
// If an error occurs.
jQuery("#output").append(delayedMessage);
startIframeTest( delayedMessage );
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a bit self-fulfilling, since delayedMessage will always be "It worked!". I'd rather see this send a global variable that is assigned in the same callback that releases the ready hold.


setTimeout( function() {
jQuery.holdReady( false );
}, 2000 );
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two seconds is a lot of idle time to add for this test. If you take my advice below about assigning to a variable here, we can instead set a short timeout and just push it back if it fires before jQuery.ready has been invoked.

"unit/basic.js",

"unit/core.js",
"unit/readywait.js",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding a new module means more than extending this list. Can you instead put the new test in test/unit/ready.js?

@stevemao
Copy link
Contributor Author

stevemao commented Oct 4, 2016

Thanks @gibson042 for your review. I did think that the change wasn't ideal but I tried just to do minimum changes. Will fix it soon 😄

@timmywil
Copy link
Member

Hey @stevemao. If you have time to make the requested changes, we'd like to land this for 3.2.

@timmywil
Copy link
Member

Closing in favor of #3576

@timmywil timmywil closed this Mar 18, 2017
timmywil pushed a commit to timmywil/jquery that referenced this pull request Mar 18, 2017
timmywil pushed a commit to timmywil/jquery that referenced this pull request Mar 18, 2017
timmywil pushed a commit to timmywil/jquery that referenced this pull request Mar 18, 2017
@lock lock bot locked as resolved and limited conversation to collaborators Jan 18, 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.

7 participants