aboutsummaryrefslogtreecommitdiffstats
path: root/src/service/httpBackend.js
diff options
context:
space:
mode:
authorIgor Minar2012-01-06 19:17:31 -0800
committerVojta Jina2012-01-09 13:17:48 -0800
commitb8960c3710f20a3c56ecc27f382b2500f6dc1e05 (patch)
tree0352302c7e570e95699895eb4c27f046f4f313fb /src/service/httpBackend.js
parent67338ce06140f60fe08bf59f7eb6c9814743e907 (diff)
downloadangular.js-b8960c3710f20a3c56ecc27f382b2500f6dc1e05.tar.bz2
chore($http): small $http fixes
Diffstat (limited to 'src/service/httpBackend.js')
-rw-r--r--src/service/httpBackend.js3
1 files changed, 2 insertions, 1 deletions
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(