- 13 Jan, 2011 3 commits
- 12 Jan, 2011 3 commits
-
-
jaubourg authored
-
jaubourg authored
Fixes #6230. Added a unit test to control that, since the ajax rewrite, setting the Accept header actually replaced the previous value and didn't append to it (tested in Safari 4.0.4 for which the problem was specifically reported).
-
jaubourg authored
Fixes 4825. jQuery.fn.load: use the jXHR's Promise interface to get the actual response in case ajaxSettings contains a dataFilter. Unit test added.
-
- 10 Jan, 2011 11 commits
-
-
Colin Snover authored
-
Colin Snover authored
Ensure that buildFragment clones elements properly in all browsers. Fixes #3879, #6655. Also improves form element clone tests and fixes bugs in $.fn.clone exposed by these new test cases related to the values of checkboxes and radio buttons in IE.
-
jaubourg authored
-
Colin Snover authored
Revert fb444507 which is no longer necessary with the release of Opera 11. Fixes #7608.
-
Dave Methvin authored
Ensure that the DOM element ref in an event handler is removed by cleanData to avoid an IE6/7/8 memory leak. Fixes #7054.
-
Dave Methvin authored
-
jaubourg authored
-
jaubourg authored
-
jaubourg authored
Fixes #5803. Reworked jsonp prefilter so that it sets the dataType as jsonp and recognizes requests with originalSettings having jsonp or jsonpCallback to be jsonp. Moved default jsonp option value into ajaxSettings. Attached the transport to "jsonp" which avoids unnecessary testing. Transport factory sets dataType back to json for proper data conversion.
-
jaubourg authored
-
jaubourg authored
-
- 09 Jan, 2011 7 commits
-
-
jaubourg authored
Fixes #5955. Option crossDomain now forces ajax to consider a request as cross-domain even when it is not. Useful for when servers issue redirects to cross-domain urls. Unit test added.
-
jaubourg authored
Make sure prefilters have been called and transport has been selected before sending any global event (in case the "global" option has been changed).
-
jaubourg authored
Added a test for retrying a request on error using jQuery.ajax(this). Works as intended. Fixes #7461.
-
jaubourg authored
Fixes #7465. Reworked the regexp and associated test for cross-domain detection so that it now includes ports. Added cross-domain detection tests for protocol, hostname and port.
-
jaubourg authored
-
jaubourg authored
Fixes #7881. Setting contentType to false will prevent the Content-Type header from being sent. Unit test added.
-
jaubourg authored
-
- 07 Jan, 2011 1 commit
-
-
jaubourg authored
-
- 06 Jan, 2011 5 commits
-
-
jaubourg authored
-
jaubourg authored
-
jaubourg authored
Renamed src/transports to src/ajax (in case we need prefilters in the future and to avoid a separate prefilters directory).
-
Colin Snover authored
-
- 05 Jan, 2011 1 commit
-
-
jaubourg authored
"then" renamed "complete" and new "then" method defined using "complete" and "fail" internally. The API is still symetrical (complete/fail), still promotes AOP but is also now Promise/A compliant. Changed unit tests and ajax module accordingly.
-
- 04 Jan, 2011 1 commit
-
-
jeresig authored
-
- 01 Jan, 2011 1 commit
-
-
Dave Methvin authored
When serializing text, encode all line breaks as CRLF pairs per the application/x-www-form-urlencoded specification. Fixes #6876.
-
- 31 Dec, 2010 7 commits
-
-
jaubourg authored
Conflicts: Rakefile src/ajax.js
-
jaubourg authored
Simplified the way a Promise is tested for (removed promiseMarker). Removed isCancelled helper method from _Deferred, wasn't used nor tested. Reworked jQuery.Deferred and removed unnecessary variables. Also ensured a Promise will return itself when asked for a Promise. Finally, the jQuery.when tests have been revamped.
-
jaubourg authored
-
jaubourg authored
Introduced a new promise method on deferreds that returns an immutable object (exposing then, fail, isResolved, isRejected and promise itself only). Remove $.isDeferred and moved logic directly into $.when. Made sure $.when returns a promise by using promise(). Used promise() in ajax code too.
-
jaubourg authored
-
jaubourg authored
-
jaubourg authored
Removed re-usability from jXHR object (no more open, send & onreadystatechange support). Streamlined the implementation and put it back into ajax.js (removed xhr.js in the process). Went back to a more simple & direct approach to options handling (keeping much room to further minification-related optimizations). Code is cleaner, smaller & faster. Removed & edited unit tests accordingly. All build files have had xhr.js removed.
-