Remove use of Object.keys and Array.prototype.forEach for IE8 compatibility

This commit is contained in:
Sean Nichols 2017-01-23 13:44:39 -05:00
parent 6fdf81f266
commit 11157999eb

View File

@ -2188,12 +2188,11 @@ function OpenSeadragon( options ){
}
if (headers) {
Object.keys(headers).forEach(function (headerName) {
// Falsy header values will be ignored
if (headers[headerName]) {
for (var headerName in headers) {
if (headers.hasOwnProperty(headerName) && headers[headerName]) {
request.setRequestHeader(headerName, headers[headerName]);
}
});
}
}
if (withCredentials) {