- 10 Jan, 2011 8 commits
-
-
Xavi authored
Bug 7931; Fixed bug that caused scrollTop and scrollLeft setters to return null when called on an empty jquery object
-
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 16 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.
-
jaubourg authored
Removed dataCheckers, added true as possible value for dataConverters indicating dataType equivalence (ie. no conversion has to be performed).
-
unknown authored
-
unknown authored
Deferred cannot be cancelled by returning false in a callback. Exception in the callback are still propagated and execution of remaining callbacks is still possible.
-
unknown authored
-
unknown authored
-
unknown authored
-
unknown authored
-
jaubourg authored
-
jaubourg authored
-