Always provide useCapture and async args to browser

This commit is contained in:
Andreas Hocevar
2016-01-29 17:04:34 +01:00
parent f35d0106b8
commit d7497f9686
4 changed files with 8 additions and 7 deletions

View File

@@ -65,7 +65,8 @@ ol.featureloader.loadFeaturesXhr = function(url, format, success, failure) {
function(extent, resolution, projection) {
var xhr = new XMLHttpRequest();
xhr.open('GET',
goog.isFunction(url) ? url(extent, resolution, projection) : url);
goog.isFunction(url) ? url(extent, resolution, projection) : url,
true);
if (format.getType() == ol.format.FormatType.ARRAY_BUFFER) {
xhr.responseType = 'arraybuffer';
}