We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b0474cb commit a79004cCopy full SHA for a79004c
src/ng/httpBackend.js
@@ -69,7 +69,7 @@ function createHttpBackend($browser, XHR, $browserDefer, callbacks, rawDocument)
69
// response is in the cache. the promise api will ensure that to the app code the api is
70
// always async
71
xhr.onreadystatechange = function() {
72
- if (xhr.readyState == 4) {
+ if (xhr && xhr.readyState == 4) {
73
var responseHeaders = null,
74
response = null;
75
0 commit comments