Fixes #4964. Adds a statusCode object together with a new statusCode method on the...
authorjaubourg <j@ubourg.net>
Thu, 13 Jan 2011 16:01:25 +0000 (17:01 +0100)
committerjaubourg <j@ubourg.net>
Thu, 13 Jan 2011 16:01:25 +0000 (17:01 +0100)
commit44fc87f66ca54278e37f15885a80c2407036df57
tree660b63f9f53bef80b9c60df7b09dfdfc27900743
parent57956152d8a9d23ae97ba576b8ec4b63306c8758
Fixes #4964. Adds a statusCode object together with a new statusCode method on the jXHR object (deferred behaviour). They accept a map of statusCode/callback(s). Callbacks are fired when the status code of the response correponds to the key (as a success or an error callback depending on how the request completed). Unit tests added.
src/ajax.js
test/unit/ajax.js