Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Commit

Permalink
fix(httpBackend): fix 'type mismatch' error on IE8 after each request
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorMinar committed Jan 3, 2014
1 parent 6c17d02 commit fd9a03e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ng/httpBackend.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit fd9a03e

Please sign in to comment.