Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Ajax rewrite #45

Closed
wants to merge 298 commits into from

3 participants

@jaubourg
Collaborator

Revamping of the internals of jQuery.ajax() as a pluggable architecture with more control over data types, late callback binding and complete xhr emulation.

See http://oksoclap.com/6Y26bm1ZsB for more detailed information.

I'm not looking for inclusion right now but rather for code review and general remarks. It's been hell to keep the rewrite up-to-date with all the activity as of late ;)

jaubourg added some commits
jaubourg Merge branch 'master' of git://github.com/jquery/jquery 563779d
jaubourg Reworked callback lists code and changed method call & naming
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
4bee95a
jaubourg Better handling of dataTypes option (also added default in ajaxSettin…
…gs comment)

Signed-off-by: jaubourg <aubourg.julian@gmail.com>
44f24e9
jaubourg When data converter is not found try srcType => text & text => destTy…
…pe (unit test changed accordingly)

Signed-off-by: jaubourg <aubourg.julian@gmail.com>
a7903f4
jaubourg transport/jsonp no longer put text inbetween jsonp & json dataTypes (…
…no needed anymore)

Signed-off-by: jaubourg <aubourg.julian@gmail.com>
0626094
jaubourg More compact (but less readable) status filtering: switch was overkill.
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
dc454dd
jaubourg Ensures headers keys are lowercase and trimmed and that headers value…
…s are trimmed
0fe9361
jaubourg Fixed the condition on setting X-Requested-With and set its key as lo…
…wercase

Signed-off-by: jaubourg <aubourg.julian@gmail.com>
6e89517
jaubourg Revised headers regexp
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
eb2e6b9
jaubourg Merge branch 'master' of git://github.com/jquery/jquery
Conflicts:
	Rakefile
	src/ajax.js
7e70500
jaubourg Added newline at end of files
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
aaf1a5e
jaubourg Merge branch 'master' of git://github.com/jquery/jquery
Conflicts:
	Rakefile

Signed-off-by: jaubourg <aubourg.julian@gmail.com>
6348421
jaubourg Fire complete AFTER success or error (as of previous implementation)
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
a149837
jaubourg Removed cache handling & fixed completely off status system (john's n…
…ot the only one to commit while tired it seems)

Signed-off-by: jaubourg <aubourg.julian@gmail.com>
4d9097e
jaubourg Revised status handling... need to concentrate
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
7ba8769
jaubourg Fixed error in jquery/jquery
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
2acdb5c
jaubourg Add preliminary support for s.jsonpCallback
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
b7cd251
jaubourg Remove test of s.jsonCallback, awaiting type selection refactoring
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
b5db793
jaubourg Preliminary prefilters support + various comments & spacing thingies
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
4ce0b1c
jaubourg Merge branch 'master' of git://github.com/jquery/jquery
Conflicts:
	Rakefile
	src/manipulation.js
93bd188
jaubourg Transport system V2
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
b6a66ef
jaubourg Merge branch 'master' of git://github.com/jquery/jquery
Conflicts:
	build.xml
5348549
jaubourg Fixed silly merge I made on build.xml
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
917f184
jaubourg - Callbacks can now be specified by array or with multiple arguments
- ajax.bindTransport now uses a function pointer to append instead of a test each loop

Signed-off-by: jaubourg <aubourg.julian@gmail.com>
823837f
jaubourg Better cleanup of jsonp callback using complete callback
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
911198e
jaubourg Removed handleCallback from dereferences (not needed anymore)
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
ebfe3c7
jaubourg Merge branch 'master' of git://github.com/jquery/jquery 9608163
jaubourg Merge branch 'master' of git://github.com/jquery/jquery
Conflicts:
	src/ajax.js
102bc55
jaubourg Test for async rather than force it
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
ca38413
jaubourg Added jsonp over iframe transport
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
6cc9993
jaubourg Revised unit tests now including jsonp over iframe tests
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
d9c35c6
jaubourg Avoided unnecessary loop and dereferences fire when firing is skipped…
… on empty

Signed-off-by: jaubourg <aubourg.julian@gmail.com>
0645b8b
jaubourg Merge branch 'master' of git://github.com/jquery/jquery 28bb5ea
jaubourg Merge branch 'master' of git://github.com/jquery/jquery 17f4452
jaubourg Moved all variables up
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
89d13c8
jaubourg Shorter support.crossDomainRequest values : "xhr" & "xdr".
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
56f46ce
jaubourg Merge branch 'master' of git://github.com/jquery/jquery 735ff81
jaubourg Merge branch 'master' of git://github.com/jquery/jquery 6d548cc
jaubourg Merge branch 'master' of git://github.com/jquery/jquery d3dc926
jaubourg Merge branch 'master' of git://github.com/jquery/jquery 7430278
jaubourg Merge branch 'master' of git://github.com/jquery/jquery 9537831
jaubourg Removed unnecessary deferencements
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
b7a70d6
jaubourg Merge branch 'master' of git://github.com/jquery/jquery 20f3407
jaubourg Use variables for some builtin functions
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
fe4fe85
jaubourg Merge branch 'master' of git://github.com/jquery/jquery cdc673a
jaubourg Merge branch 'master' of git://github.com/jquery/jquery
Conflicts:
	src/ajax.js
81fd4f5
jaubourg (Lost in merge) Default callbackContext to the $.extended ajax option…
…s for 1.3.2 compatibility, per #5654.

Signed-off-by: jaubourg <aubourg.julian@gmail.com>
51f0eca
jaubourg Merge branch 'master' of git://github.com/jquery/jquery
Conflicts:
	Makefile
	Rakefile
	build.xml
84aef3d
jaubourg Merge branch 'master' of git://github.com/jquery/jquery 47c5b48
jaubourg Merge branch 'master' of git://github.com/jquery/jquery d66c14e
jaubourg Used conditional comment to limit xhr abort at unload to IE
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
63221b2
jaubourg Merge branch 'master' of git://github.com/jquery/jquery 2fcda01
jaubourg Merge branch 'master' of git://github.com/jquery/jquery
Conflicts:
	build/yuicompressor-2.4.2.jar
90785ef
jaubourg Deleted yui compressor
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
e446c8b
jaubourg Removed IE conditional comments in case the new minifier cares.
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
2927f80
jaubourg Added transport for css dataType
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
ba83efb
jaubourg Added unit tests for css dataType
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
c84a98a
jaubourg Merge branch 'master' of git://github.com/jquery/jquery c302523
jaubourg Merge branch 'master' of git://github.com/jquery/jquery 67d61fd
jaubourg Merge branch 'master' of git://github.com/jquery/jquery
Conflicts:
	test/delegatetest.html
592806b
jaubourg Merge branch 'master' of git://github.com/jquery/jquery
Conflicts:
	test/delegatetest.html
8f3b996
jaubourg Merge branch 'master' of git://github.com/jquery/jquery
Conflicts:
	test/delegatetest.html
0f536d3
jaubourg Merge branch 'master' of git://github.com/jquery/jquery
Conflicts:
	src/ajax.js
85192fb
jaubourg Merge branch 'master' of git://github.com/jquery/jquery cd4f441
jaubourg Merge branch 'master' of git://github.com/jquery/jquery 1f1f563
jaubourg Merge branch 'master' of git://github.com/jquery/jquery
Conflicts:
	src/ajax.js
e9748ca
jaubourg Merge branch 'master' of git://github.com/jquery/jquery dfa28ea
jaubourg Added json to auto-detected dataTypes
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
4911a14
jaubourg Merge branch 'master' of git://github.com/jquery/jquery a83ca81
jaubourg Temporarily handle auto dataType (needs work / syndication with xhr)
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
0de41c5
jaubourg Much better logic & flow for dataType determination
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
55488ec
jaubourg Verifies status is not 0 for complete. Added exception of timeout to …
…pass unit tests but is this logical?

Signed-off-by: jaubourg <aubourg.julian@gmail.com>
577f14e
jaubourg Put dataType handling into a separate utility function. Maybe it coul…
…d be put much higher in the chain. I'll work on that.

Signed-off-by: jaubourg <aubourg.julian@gmail.com>
5a68340
jaubourg Have xdr use the same logic as xhr for dataTypes. Proof that this log…
…ic could be put higher, for all transports to take advantage of.

Signed-off-by: jaubourg <aubourg.julian@gmail.com>
77dd59f
jaubourg Merge branch 'master' of git://github.com/jquery/jquery. Propagated a…
…ll changes made to ajax from main to branch.

Conflicts:
	src/ajax.js
f183520
jaubourg Merge branch 'master' of git://github.com/jquery/jquery
Conflicts:
	src/ajax.js
	test/unit/ajax.js
794e326
jaubourg Removed temporary test code.
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
c96eef1
jaubourg Merge branch 'master' of git://github.com/jquery/jquery d331de1
jaubourg Merge branch 'master' of git://github.com/jquery/jquery
Conflicts:
	src/ajax.js

Signed-off-by: jaubourg <aubourg.julian@gmail.com>
b591f07
jaubourg Merge branch 'master' of git://github.com/jquery/jquery
Conflicts:
	src/ajax.js: just ignored modifs since new implementation didn't suffer the same issues.

Signed-off-by: jaubourg <aubourg.julian@gmail.com>
aa4115e
jaubourg Moved auto-fetching dataType code into ajax.js and made it dependent …
…on ajaxSettings.

Signed-off-by: jaubourg <aubourg.julian@gmail.com>
6969471
jaubourg Set event handlers to noop instead of null to be safe (in case IE lea…
…ks memory as it does with xhrs).

Signed-off-by: jaubourg <aubourg.julian@gmail.com>
59c4025
jaubourg Removed unnecessary comments.
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
ec547f6
jaubourg Added html and css auto-fetching. Also re-ordered accepts to be in-sy…
…nc with autoFetching and added accepts for css.

Signed-off-by: jaubourg <aubourg.julian@gmail.com>
e4aa824
jaubourg Nearly completely rewrote the css transport. Now uses onreadystatecha…
…nge for IE (no polling) and onload (for the insanely resilient Opera).

Signed-off-by: jaubourg <aubourg.julian@gmail.com>
5c9c71e
jaubourg Made real unit test for css, including controlling that css is applie…
…d to elements in the document as soon as the success callback is hit.

Signed-off-by: jaubourg <aubourg.julian@gmail.com>
a51fe10
jaubourg Merge branch 'master' of git://github.com/jquery/jquery
Conflicts:
	src/ajax.js: ignored changes, rewrite is unaffected by fixed issues

Signed-off-by: jaubourg <aubourg.julian@gmail.com>
368717c
jaubourg Added css auto-fetching test.
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
0c4e86f
jaubourg Replaced "auto" dataType with "*" to be on par with keys in ajaxSetti…
…ngs.transports & ajaxSetting.dataConverters

Signed-off-by: jaubourg <aubourg.julian@gmail.com>
5747e8f
jaubourg Added some comments.
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
788e784
jaubourg Only bind xdr transport on IE
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
fbf09d5
jaubourg Merge branch 'master' of git://github.com/jquery/jquery
Conflicts:
	src/ajax.js

Signed-off-by: jaubourg <aubourg.julian@gmail.com>
664197f
jaubourg Merge branch 'master' of git://github.com/jquery/jquery 779e2a3
jaubourg Merge branch 'master' of git://github.com/jquery/jquery bd4ec05
jaubourg Merge branch 'master' of git://github.com/jquery/jquery 8454799
jaubourg Merged implementTransport & createRequest in one function in order to…
… prepare for full xhr emulation.

Signed-off-by: jaubourg <aubourg.julian@gmail.com>
f009e83
jaubourg Second phase of xhr emulation refactoring (now using readyState and f…
…iring onreadystatechange)

Signed-off-by: jaubourg <aubourg.julian@gmail.com>
5aa71d6
jaubourg Renamed default accepts key to "*" for consistency and changed "Accep…
…t" header setting logic accordingly.

Signed-off-by: jaubourg <aubourg.julian@gmail.com>
daf08ad
jaubourg Made reponseX xhr fields configurable by dataType.
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
9fcffb0
jaubourg Merge branch 'master' of git://github.com/jquery/jquery dd37aa4
jaubourg Full xhr emulation, jQuery.ajax is now delegating to jQuery.xhr
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
1ae61b0
jaubourg Put jQuery.xhr() into its own source file, modified the build accordi…
…ngly. Also, transport logic is now hidden behind $.xhr rather than $.ajax (transports modified accordingly)

Signed-off-by: jaubourg <aubourg.julian@gmail.com>
e2d3b5d
jaubourg Modified Rakefile and Makefile to include src/xhr.js too
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
9b6f73d
jaubourg Put === instead of == when comparing with string constants (as per jQ…
…uery standard). Also fixed a problem that appeared then with ifModified.

Signed-off-by: jaubourg <aubourg.julian@gmail.com>
ba52872
jaubourg Fixed a bug that made first parameter if the beforeSend callback the …
…option object instead of the xhr

Signed-off-by: jaubourg <aubourg.julian@gmail.com>
fd4f383
jaubourg Added unit tests regarding xhr readyState management and xhr re-usabi…
…lity

Signed-off-by: jaubourg <aubourg.julian@gmail.com>
12b97b3
jaubourg Removed jQuery.xhr.unbindTransport: interest is so-so and logic would…
… have been sloppy anyway.

Signed-off-by: jaubourg <aubourg.julian@gmail.com>
a92e783
jaubourg Merge branch 'master' of git://github.com/jquery/jquery e9e82fc
jaubourg Fixed typo: put "mode" instead of "type"... that's what happens when …
…you get your nose into a w3c spec for too long ;)

Signed-off-by: jaubourg <aubourg.julian@gmail.com>
3ead90c
jaubourg Added extra controls on data and shortened the xdr timeout property name
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
475ce43
jaubourg Added a cross-domain test (works fine in IE8, Webkit and FF), made op…
…tional depending on the support property

Signed-off-by: jaubourg <aubourg.julian@gmail.com>
de4aa2e
jaubourg Removed debug leftover
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
540de3f
jaubourg Implemented the new $.ajax( url , options ) signature as per 1.5 roadmap
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
827ecd7
jaubourg Replaced clumsy substr with regexp testing
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
8b18c7b
jaubourg Merge branch 'master' of git://github.com/jquery/jquery
Conflicts:
	src/ajax.js: rewrite was unaffected by #5838
43436d7
jaubourg Fixed a weird bug where === wasn't working against a string constant …
…(was blocking the UA string test)

Signed-off-by: jaubourg <aubourg.julian@gmail.com>
9e54dbc
jaubourg Revised checkState logic (and added check control on bind/unbind)
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
27f3436
jaubourg Added headers option as a workaround to declaring a beforeSend callba…
…ck for the sole purpose of setting headers. Also changed the beforeSend abort detection logic but will land a better lifecycle.

Signed-off-by: jaubourg <aubourg.julian@gmail.com>
85429a9
jaubourg Upped callback removing for safety (should not be needed but it's cle…
…arer to have it near the xhrUnbind action)

Signed-off-by: jaubourg <aubourg.julian@gmail.com>
58dc8b2
jaubourg Revised lifecycle: it is now possible to manually abort (and even mak…
…e a complete new request with the xhr) in beforeSend and current send will be aborted. Also, callbacks should be bindable early (as opposed to only after the open method has been called).

Signed-off-by: jaubourg <aubourg.julian@gmail.com>
5192cee
jaubourg Added a test where the request is manually aborted using xhr.abort() …
…within beforeSend.

Signed-off-by: jaubourg <aubourg.julian@gmail.com>
c33d4ea
jaubourg Have xhr.open return this to allow chaining
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
a6f282a
jaubourg Added xhr early binding test
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
da3a7f5
jaubourg Much simplified jQuery.ajax (taking advantage of the fact the second …
…argument of xhr.send overrides options)

Signed-off-by: jaubourg <aubourg.julian@gmail.com>
348b597
jaubourg Added the option of having jQuery.xhr returning the native xhr implem…
…entation through jQuery.xhr(true). Unit test added.

Signed-off-by: jaubourg <aubourg.julian@gmail.com>
e7a4451
jaubourg xhr.send( data , false ) silences global events automagically. Seems …
…like a sensible thing to do since issuing these events would be the only difference between the native xhr and jQuery's. Unit test provided.

Signed-off-by: jaubourg <aubourg.julian@gmail.com>
7365971
jaubourg Auto-fetching can now be disabled using autoFetchings{ TYPE: false }.…
… Unit test added.

Signed-off-by: jaubourg <aubourg.julian@gmail.com>
f46ff2a
jaubourg Re-organised jQuery.xhr code to remove as many jQuery.each as possible
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
e6b796e
jaubourg beforeSend is being called within the actual xhr.send method which is…
… a nightmare. Worked around it by proxying methods and nullifying s.beforeSend before calling it. Dodgy dodgy dodgy, but there's not enough info to call beforeSend BEFORE xhr.send is reached.

Signed-off-by: jaubourg <aubourg.julian@gmail.com>
044a2b1
jaubourg Forgotten piece of code from previous commit
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
0e30187
jaubourg Much simplified css transport. link.onload support now detected and t…
…hank you Webkit for making my life miserable and my code horrible.

Signed-off-by: jaubourg <aubourg.julian@gmail.com>
f4ef5b6
jaubourg Fixed minor typo
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
dda7d31
jaubourg Merge branch 'master' of git://github.com/jquery/jquery 63e84dd
jaubourg Merge branch 'master' of git://github.com/jquery/jquery 19b0e09
jaubourg Fixed typo in a comment.
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
507f962
jaubourg Simplified code and added true abort (removing the link tag in the pr…
…ocess)

Signed-off-by: jaubourg <aubourg.julian@gmail.com>
0c85f32
jaubourg Merge branch 'master' of git://github.com/jquery/jquery
Conflicts:
	src/ajax.js
	test/delegatetest.html
7e49840
jaubourg Use jQuery.error instead of throw. Implemented the parsererror status…
… correctly and added the xhr to the success callback (completely skipped this one earlier => needs a unit test).

Signed-off-by: jaubourg <aubourg.julian@gmail.com>
9273835
jaubourg Merge branch 'master' of git://github.com/jquery/jquery
Conflicts:
	src/ajax.js
c897c17
jaubourg Merge branch 'master' of git://github.com/jquery/jquery 41535c2
jaubourg Handle context properly in case it's been $.extended.
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
caa51b1
jaubourg Added missing parameter to beforeSend call.
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
e6cb9d6
jaubourg Merge branch 'master' of git://github.com/jquery/jquery
Conflicts:
	src/ajax.js
383d4ba
jaubourg Merge branch 'master' of git://github.com/jquery/jquery 9035a3a
jaubourg Merge branch 'master' of git://github.com/jquery/jquery 9be0f82
jaubourg Merge branch 'master' of git://github.com/jquery/jquery ded3137
jaubourg Merge branch 'master' of git://github.com/jquery/jquery 903a57f
jaubourg First part to fix the cross-domain xhr failing issuing a success (onl…
…y fixed in FF, IE unaffected, Webkit & Opera to be investigated). Added unit test.

Signed-off-by: jaubourg <aubourg.julian@gmail.com>
e0e32ff
jaubourg Second part of fix for success on cross-domain error: uses the status…
…Text to differentiate between 304 & cross-domain failure. Also removed alert from unit test.

Signed-off-by: jaubourg <aubourg.julian@gmail.com>
0ce8ecb
jaubourg Strengthened test so that Opera's 304 doesn't fail for same domain. F…
…ixed a typo in unit test.

Signed-off-by: jaubourg <aubourg.julian@gmail.com>
a3b94ee
jaubourg Fix exception thrown when internal transport is not found.
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
2f19add
jaubourg Merge branch 'master' of git://github.com/jquery/jquery 472152d
jaubourg Added cross-domain test to browsers with no support for it.
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
61b49ac
jaubourg Added async attribute to injected script tags.
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
a58a085
jaubourg Revised callback system + minor rewrites.
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
2d7fc5d
jaubourg Moved all css dataType settings to transport/css.js
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
2d2699b
jaubourg Moved scrip dataType ajax settings to transport/script.js
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
58616fc
jaubourg Moved image dataType ajax settings to transports/image.js
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
8a8c488
jaubourg Re-ordered some data in ajaxSettings for consistency
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
693096c
jaubourg Renamed everything related to auto dataType determination.
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
bb51bd5
jaubourg Removed "fetch" reference from texts in unit tests.
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
2c33afd
jaubourg Merge branch 'master' of git://github.com/jquery/jquery 97b2eb6
jaubourg Fix for #4958 + minor code beautification
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
d41f613
jaubourg Unit test for #4958 (atom+xml)
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
e59aa70
jaubourg Added data needed for previous unit test.
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
1b891ff
jaubourg Added display:none to style of internal iframe to circumvent a bug in…
… IE seen in jQuery-JSONP where the iframes inserted in the head element are visible when no doctype is provided.

Signed-off-by: jaubourg <aubourg.julian@gmail.com>
8ac146a
jaubourg Added an effectation to prevent minifier from removing stylesheet.css…
…Rules statement. Some minor rewriting.

Signed-off-by: jaubourg <aubourg.julian@gmail.com>
7ff5c92
jaubourg Revised callbacks list system to ensure proper calling order.
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
2808e5f
jaubourg Enhanced xhr re-usability. Modified unit test accordingly.
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
1e2f655
jaubourg Revised and much simplified technique for beforeSend to protect itsel…
…f against xhr re-use.

Signed-off-by: jaubourg <aubourg.julian@gmail.com>
ac595ac
jaubourg Fixed typo.
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
e0fdc86
jaubourg Merge branch 'master' of git://github.com/jquery/jquery 3cb73f3
jaubourg Bind on beforeunload seems broken so switched to unload, not sure it'…
…s the right move but heh.

Signed-off-by: jaubourg <aubourg.julian@gmail.com>
e99bb35
jaubourg Merge branch 'master' of git://github.com/jquery/jquery b0e2e75
jaubourg Change to unload wasn't needed.
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
b9da952
jaubourg Merge branch 'master' of git://github.com/jquery/jquery e52399c
jaubourg Merge branch 'master' of git://github.com/jquery/jquery a74c236
jaubourg Merge branch 'master' of git://github.com/jquery/jquery
Conflicts:
	src/ajax.js
bf33549
jaubourg Merge branch 'master' of git://github.com/jquery/jquery deea611
jaubourg Merge branch 'master' of git://github.com/jquery/jquery
Conflicts:
	test/delegatetest.html
dd7b2e5
jaubourg Merge branch 'master' of git://github.com/jquery/jquery 8f5b5ef
jaubourg Merge branch 'master' of git://github.com/jquery/jquery 4bf5370
jaubourg Remove s.dataTypes = [ "a" , "b" ] in favor of s.dataType = "a b".
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
6082304
jaubourg Used jQuery.error rather than throw when no dataConverter is found to…
… be consistent with dataCheckers.

Signed-off-by: jaubourg <aubourg.julian@gmail.com>
2f27f5f
jaubourg Simplified s.dataType handling (since s.dataType is no longer updated…
… as we go).

Signed-off-by: jaubourg <aubourg.julian@gmail.com>
d632855
jaubourg Merge branch 'master' of git://github.com/jquery/jquery 2e17b38
jaubourg Merge branch 'master' of git://github.com/jquery/jquery 0f66ecb
jaubourg Fixed a nasty typo (thank peol for this).
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
21c4591
jaubourg Merge branch 'master' of git://github.com/jquery/jquery
Conflicts:
	src/ajax.js
29c49bf
jaubourg Minor rewriting
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
441f2e3
jaubourg Various fixes to get on par with main.
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
34ba07f
jaubourg Added lint rule to ant file.
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
f27fd9c
jaubourg Made ajax rewrite jslint compliant :)
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
a9da847
jaubourg Fixed tabulations.
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
6244334
jaubourg Merge branch 'master' of git://github.com/jquery/jquery
Conflicts:
	src/ajax.js
e0cb424
jaubourg Merge branch 'master' of git://github.com/jquery/jquery
Conflicts:
	test/unit/ajax.js
fe5bc3a
jaubourg Merge branch 'master' of git://github.com/jquery/jquery 2952494
jaubourg Merge branch 'master' of git://github.com/jquery/jquery 08f6296
jaubourg Removed jsonpOverIframe transport + fixed some minor typos
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
194170b
jaubourg Used browser sniffing (yeah I know) since Opera 9.x was making troubl…
…es. Also added the correct exception for FF 2.x.

Signed-off-by: jaubourg <aubourg.julian@gmail.com>
1498ebe
jaubourg Remove css and image transports from jQuery. Deported them as plugins…
… in a new directory with separated unit tests.

Signed-off-by: jaubourg <aubourg.julian@gmail.com>
552849a
jaubourg Replaced regexp as of main source tree. Strengthened send test for xhr.
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
4a53f28
jaubourg Merge branch 'master' of git://github.com/jquery/jquery
Conflicts:
	src/ajax.js
	test/unit/ajax.js
f141d1d
jaubourg Merge branch 'master' of git://github.com/jquery/jquery
Conflicts:
	Rakefile

Signed-off-by: jaubourg <aubourg.julian@gmail.com>
96d80ec
jaubourg Merge branch 'master' of git://github.com/jquery/jquery b9434e8
jaubourg Merge branch 'master' of git://github.com/jquery/jquery
Conflicts:
	build.xml

Signed-off-by: jaubourg <aubourg.julian@gmail.com>
e0b54ca
jaubourg Merge branch 'master' of git://github.com/jquery/jquery
Conflicts:
	src/ajax.js
	test/unit/ajax.js

Also had to tweak xhr.js and all transports.
ac5235e
jaubourg Merge branch 'master' of git://github.com/jquery/jquery 440f5dd
jaubourg Merge branch 'master' of git://github.com/jquery/jquery 485b9a4
jaubourg Merge branch 'master' of git://github.com/jquery/jquery
Conflicts:
	src/ajax.js
	src/support.js
a841aa9
jaubourg Use jQuery.noop instead of noop
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
2c609b2
jaubourg Merge branch 'master' of git://github.com/jquery/jquery
Conflicts:
	test/unit/ajax.js
110d5c8
jaubourg Fixed linebreak for lint.
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
a0944a6
jaubourg Merge branch 'master' of git://github.com/jquery/jquery 86c3414
jaubourg Merge branch 'master' of git://github.com/jquery/jquery c1a5580
jaubourg Merge branch 'master' of git://github.com/jquery/jquery
Conflicts:
	src/ajax.js
5f48b32
jaubourg Merge branch 'master' of git://github.com/jquery/jquery 4480071
jaubourg Merge branch 'master' of git://github.com/jquery/jquery ef01a58
jaubourg Merge branch 'master' of git://github.com/jquery/jquery d5525c0
jaubourg Merge branch 'master' of git://github.com/jquery/jquery
Conflicts:
	build/google-compiler-20091218.jar
	src/ajax.js
	test/unit/ajax.js
af3c4d0
jaubourg Removed plugins.
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
8c9a77f
jaubourg Merge branch 'master' of git://github.com/jquery/jquery
Conflicts:
	src/ajax.js
f71ef9e
jaubourg Merge branch 'master' of git://github.com/jquery/jquery
Conflicts:
	src/ajax.js
	test/unit/ajax.js

Signed-off-by: jaubourg <aubourg.julian@gmail.com>
bb2ce84
jaubourg Merge branch 'master' of git://github.com/jquery/jquery c63ffb2
jaubourg Merge branch 'master' of git://github.com/jquery/jquery
Conflicts:
	src/ajax.js
e97bbda
jaubourg Merge branch 'master' of git://github.com/jquery/jquery ad53ab9
jaubourg Added success data to ajaxSuccess event + minor rewriting.
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
cec64d3
jaubourg Some rewriting for better minification.
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
486923e
jaubourg Ignore jar files for crlf transformation e23619d
jaubourg Put back binary versions of files that had been borked by git. 2d8e3cd
jaubourg Minor rewriting to make jslint happier. d37bef0
jaubourg Removed control on prefilter being already in the list (seemed a bit …
…overkill)
54771da
jaubourg Fixed prefilters addition, removed recursion from transport selection…
… and made it more robust + other minor rewritings.

Signed-off-by: jaubourg <aubourg.julian@gmail.com>
8d6c716
jaubourg Removed xdr transport per Paul Irish's recommendation: was introduced…
… in IE8 and IE9 should support CORS.

Signed-off-by: jaubourg <aubourg.julian@gmail.com>
44d1721
jaubourg Removed unnecessary variable (probably some leftover of a now extinct…
… loop)
257c582
jaubourg Revamped event binding for jQuery XHR objects.
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
f556646
@csnover

This is for ticket #7195.

jaubourg added some commits
jaubourg Revised how dataType redirection works in transports factories: you j…
…ust have to return a string with the name of the new dataType rather than unshiting into the options object dataTypes property.

Signed-off-by: jaubourg <aubourg.julian@gmail.com>
0c54343
jaubourg Removed xdr from test/index.html. 9f923d9
jaubourg Removed sub-functions. 97c784d
jaubourg Re-introduced jQuery.noop rather than null to void onreadystatechange…
… (IE6 complained).
41eb989
jaubourg Merge branch 'master' of git://github.com/jquery/jquery
Conflicts:
	.gitattributes
	test/delegatetest.html
ea20f3f
jaubourg Fixed response headers retrieval & added a much needed unit test 0fabcb1
jaubourg Use .test() instead of .exec() in headers test. bdde3d1
jaubourg Removed dangling comma. 8f4f1af
jaubourg Revised logic in xhr transport regarding failed cross-domain requests…
… and added the fix to #6060 that was lost in rewriting.

Signed-off-by: jaubourg <aubourg.julian@gmail.com>
cbcd93f
jaubourg Minor reformatting and some "fixes" for lint.
Signed-off-by: jaubourg <aubourg.julian@gmail.com>
a7b9618
jaubourg Merge branch 'master' of git://github.com/jquery/jquery
Conflicts:
	src/ajax.js
	test/unit/ajax.js
80662d3
jaubourg Rewriting for better minification. 5e699cb
jaubourg Merge branch 'master' of git://github.com/jquery/jquery b00da1b
jaubourg Fixed an issue when requests where coming straight from cache in IE6 …
…& IE7.
23be2b3
@jitter

jaubourg you may close this one now :D

@jaubourg
Collaborator

It looks closed to me Oo

@jitter

When I was commenting it still showed me the "comment and close" button. But snover closed it shortly thereafter :P

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.