Use ol.inherits instead of goog.inherits

This commit is contained in:
Frederic Junod
2016-04-07 16:26:11 +02:00
parent 072728b083
commit e289bfbb7d
166 changed files with 448 additions and 452 deletions

View File

@@ -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);
};

View File

@@ -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);
};