Use ol.inherits instead of goog.inherits
This commit is contained in:
@@ -108,10 +108,10 @@ ol.reproj.Image = function(sourceProj, targetProj,
|
||||
attributions = this.sourceImage_.getAttributions();
|
||||
}
|
||||
|
||||
goog.base(this, targetExtent, targetResolution, this.sourcePixelRatio_,
|
||||
ol.ImageBase.call(this, targetExtent, targetResolution, this.sourcePixelRatio_,
|
||||
state, attributions);
|
||||
};
|
||||
goog.inherits(ol.reproj.Image, ol.ImageBase);
|
||||
ol.inherits(ol.reproj.Image, ol.ImageBase);
|
||||
|
||||
|
||||
/**
|
||||
@@ -121,7 +121,7 @@ ol.reproj.Image.prototype.disposeInternal = function() {
|
||||
if (this.state == ol.ImageState.LOADING) {
|
||||
this.unlistenSource_();
|
||||
}
|
||||
goog.base(this, 'disposeInternal');
|
||||
ol.ImageBase.prototype.disposeInternal.call(this);
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ ol.reproj.Tile = function(sourceProj, sourceTileGrid,
|
||||
pixelRatio, gutter, getTileFunction,
|
||||
opt_errorThreshold,
|
||||
opt_renderEdges) {
|
||||
goog.base(this, tileCoord, ol.TileState.IDLE);
|
||||
ol.Tile.call(this, tileCoord, ol.TileState.IDLE);
|
||||
|
||||
/**
|
||||
* @private
|
||||
@@ -202,7 +202,7 @@ ol.reproj.Tile = function(sourceProj, sourceTileGrid,
|
||||
}
|
||||
}
|
||||
};
|
||||
goog.inherits(ol.reproj.Tile, ol.Tile);
|
||||
ol.inherits(ol.reproj.Tile, ol.Tile);
|
||||
|
||||
|
||||
/**
|
||||
@@ -212,7 +212,7 @@ ol.reproj.Tile.prototype.disposeInternal = function() {
|
||||
if (this.state == ol.TileState.LOADING) {
|
||||
this.unlistenSources_();
|
||||
}
|
||||
goog.base(this, 'disposeInternal');
|
||||
ol.Tile.prototype.disposeInternal.call(this);
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user