Always provide useCapture and async args to browser

This commit is contained in:
Andreas Hocevar committed 2016-02-03 11:19:38 +01:00
1 parent f35d0106b8
commit d7497f9686
4 files changed
+8 -7

No files matched your search

+1 -1
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));