style($httpBackend): fix typo

This commit is contained in:
Bastian Buchholz 2014-01-03 22:19:37 +01:00 committed by Igor Minar
parent 3b1a4fe0c8
commit 32cc6cbb6f

View file

@ -71,7 +71,7 @@ function createHttpBackend($browser, createXhr, $browserDefer, callbacks, rawDoc
// response is in the cache. the promise api will ensure that to the app code the api is
// always async
xhr.onreadystatechange = function() {
// onreadystatechange might by called multiple times with readyState === 4 on mobile webkit caused by
// onreadystatechange might get called multiple times with readyState === 4 on mobile webkit caused by
// xhrs that are resolved while the app is in the background (see #5426).
// since calling completeRequest sets the `xhr` variable to null, we just check if it's not null before
// continuing