From b8960c3710f20a3c56ecc27f382b2500f6dc1e05 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Fri, 6 Jan 2012 19:17:31 -0800 Subject: chore($http): small $http fixes --- src/service/httpBackend.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/service/httpBackend.js') diff --git a/src/service/httpBackend.js b/src/service/httpBackend.js index c3114814..6da32600 100644 --- a/src/service/httpBackend.js +++ b/src/service/httpBackend.js @@ -57,7 +57,8 @@ function createHttpBackend($browser, XHR, $browserDefer, callbacks, body, locati var status; // In IE6 and 7, this might be called synchronously when xhr.send below is called and the - // response is in the cache + // response is in the cache. the promise api will ensure that to the app code the api is + // always async xhr.onreadystatechange = function() { if (xhr.readyState == 4) { completeRequest( -- cgit v1.2.3