-
Notifications
You must be signed in to change notification settings - Fork 20.5k
Simplification, clarify and update some of the ajax logic #2033
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
Conversation
Anything that can be controlled by global ajaxSettings should be explicit here. |
|
Oh yeah, really good point. I've seen some strange problems caused by that in projects. |
|
Wait, won't the $.ajax call go away (or change to script transport) when gh-1895 lands? Why make that change now? |
|
Nice catch! Although i did only preliminary work on gh-1895, so i'm not sure how much we can change there. So it might only making We can keep things separate, atomic, improve code at hand and deal with gh-1895 in relevant PR. |
* Remove "async = true" from script transport since it was needed for FF < 4 and old Opera which we do not support anymore * Add comment to "evalUrl" method on why "type" field should be explicit
e9e5af2 to
0416344
Compare
Ref trac-11264 Closes jquerygh-2033
0416344 to
7720962
Compare
* Move "evalScript.php" file to appropriate place * Make jQuery#load "type" field explicit and add test for it Ref trac-11264 Closes jquerygh-2033
7720962 to
8dd81a7
Compare
* Move "evalScript.php" file to appropriate place * Make jQuery#load "type" field explicit and add test for it Ref trac-11264 Closes jquerygh-2033
8dd81a7 to
2366582
Compare
* Move "evalScript.php" file to appropriate place * Make jQuery#load "type" field explicit and add test for it Ref trac-11264 Closes jquerygh-2033
|
@gibson042 comment is taken to the account, |
* Remove "async = true" from script transport since it was needed for FF < 4 and old Opera which we do not support anymore * Add comment to "evalUrl" method on why "type" field should be explicit Closes gh-2033 Ref b76eb91e6117ea0e15c889556033270d9744002c
* Move "evalScript.php" file to appropriate place * Make jQuery#load "type" field explicit and add test for it Ref trac-11264
2366582 to
059befe
Compare
Since it was deprecated since 1.8 Closes jquerygh-2033
|
Added another commit that replaces |
src/ajax/load.js
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could really use some comments here, because the code takes advantage of some tricky behavior. If the request succeeds, this function gets ( data, status, jqXHR ), but they are ignored because response was set above. If it fails, this function gets ( jqXHR, status, error ) (the first two of which coincide with complete) and are used in the body. It's probably also worth documenting that the self.each takes advantage of .each's undocumented second parameter.
Since it was deprecated since 1.8. Also add additional comments which explains tricky behaviour of always callback Closes jquerygh-2033
059befe to
c93b902
Compare
|
Comment for
@timmywil, @dmethvin @gibson042 i think you know where i'm going with this. How about it? |
|
Yeah, i was wondering if we could just get rid of it when i saw the comment from @gibson042 earlier. |
|
I LIKE it |
|
Created - #2090 |
Since it was deprecated since 1.8. Also add additional comments which explains tricky behaviour of "always" callback Closes gh-2033
No description provided.