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

@@ -44,7 +44,7 @@ ol.source.TileJSON = function(options) {
this.handleTileJSONError.bind(this));
} else {
var xhr = new XMLHttpRequest();
xhr.open('GET', options.url);
xhr.open('GET', options.url, true);
xhr.onload = function(e) {
if (xhr.status < 400) {
var response = /** @type {TileJSON} */(JSON.parse(xhr.responseText));