diff --git a/lib/browser/browser.ts b/lib/browser/browser.ts index 0ffb6ce95..82ffab5a0 100644 --- a/lib/browser/browser.ts +++ b/lib/browser/browser.ts @@ -55,7 +55,7 @@ function patchXHR(window: any) { function scheduleTask(task: Task) { var data = task.data; data.target.addEventListener('readystatechange', () => { - if (data.target.readyState === XMLHttpRequest.DONE) { + if (data.target.readyState === data.target.DONE) { if (!data.aborted) { task.invoke(); }