aboutsummaryrefslogtreecommitdiffstats
path: root/src/ng/httpBackend.js
diff options
context:
space:
mode:
authorIgor Minar2014-01-02 22:47:39 -0800
committerIgor Minar2014-01-02 22:47:39 -0800
commitfd9a03e147aac7e952c6dda1f381fd4662276ba2 (patch)
treed3f2c903f6c6750dbd81be3c755dc64ca10f9eb0 /src/ng/httpBackend.js
parent6c17d02bc4cc02f478775d62e1f9f77da9da82ad (diff)
downloadangular.js-fd9a03e147aac7e952c6dda1f381fd4662276ba2.tar.bz2
fix(httpBackend): fix 'type mismatch' error on IE8 after each request
Diffstat (limited to 'src/ng/httpBackend.js')
-rw-r--r--src/ng/httpBackend.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ng/httpBackend.js b/src/ng/httpBackend.js
index c72ae4bb..ffc51abf 100644
--- a/src/ng/httpBackend.js
+++ b/src/ng/httpBackend.js
@@ -75,7 +75,9 @@ function createHttpBackend($browser, createXhr, $browserDefer, callbacks, rawDoc
// onreadystatechange might by called multiple times
// with readyState === 4 on mobile webkit caused by
// xhrs that are resolved while the app is in the background (see #5426).
- xhr.onreadystatechange = undefined;
+ //
+ // we must delete the property instead of setting it to undefined/null to make IE8 happy.
+ delete xhr.onreadystatechange;
var responseHeaders = null,
response = null;