mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-16 23:30:23 +00:00
fix(httpBackend): fix 'type mismatch' error on IE8 after each request
This commit is contained in:
parent
6c17d02bc4
commit
fd9a03e147
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue