pass url to errback()

This commit is contained in:
cloudhead
2010-10-14 17:05:38 -04:00
parent 7996bf5e78
commit 6517d33cf1

View File

@@ -152,7 +152,7 @@ function loadStyleSheet(sheet, callback, reload, remaining) {
}
}
}, function (status, url) {
throw new(Error)("Couldn't load " + url+ " (" + status + ")");
throw new(Error)("Couldn't load " + url + " (" + status + ")");
});
}
@@ -223,7 +223,7 @@ function xhr(url, callback, errback) {
if (xhr.status === 0) {
callback(xhr.responseText);
} else {
errback(xhr.status);
errback(xhr.status, url);
}
} else if (async) {
xhr.onreadystatechange = function () {