From b4e0d4c188d5168986be670d4edc02b5bf8b2092 Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Wed, 18 Jul 2018 01:00:19 -0600 Subject: [PATCH] Super before this in TileJSON source --- src/ol/source/TileJSON.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/ol/source/TileJSON.js b/src/ol/source/TileJSON.js index 69b01151b0..2013e81079 100644 --- a/src/ol/source/TileJSON.js +++ b/src/ol/source/TileJSON.js @@ -53,13 +53,6 @@ class TileJSON extends TileImage { * @api */ constructor(options) { - - /** - * @type {TileJSON} - * @private - */ - this.tileJSON_ = null; - super({ attributions: options.attributions, cacheSize: options.cacheSize, @@ -72,6 +65,13 @@ class TileJSON extends TileImage { transition: options.transition }); + /** + * @type {TileJSON} + * @private + */ + this.tileJSON_ = null; + + if (options.url) { if (options.jsonp) { requestJSONP(options.url, this.handleTileJSONResponse.bind(this),