Super before this in TileJSON source

This commit is contained in:
Tim Schaub
2018-07-18 01:00:19 -06:00
parent 1309cf9b69
commit b4e0d4c188

View File

@@ -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),