Skip to content

Commit a79004c

Browse files
committed
Update httpBackend.js
1 parent b0474cb commit a79004c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ng/httpBackend.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ function createHttpBackend($browser, XHR, $browserDefer, callbacks, rawDocument)
6969
// response is in the cache. the promise api will ensure that to the app code the api is
7070
// always async
7171
xhr.onreadystatechange = function() {
72-
if (xhr.readyState == 4) {
72+
if (xhr && xhr.readyState == 4) {
7373
var responseHeaders = null,
7474
response = null;
7575

0 commit comments

Comments
 (0)