Make ol.source.TileImage#tileLoadFunction protected, not private

This commit is contained in:
Tom Payne
2014-01-02 13:01:46 +01:00
parent 4ad63725d9
commit 34c85d8ade

View File

@@ -70,10 +70,10 @@ ol.source.TileImage = function(options) {
this.tileCache = new ol.TileCache();
/**
* @private
* @protected
* @type {ol.TileLoadFunctionType}
*/
this.tileLoadFunction_ = goog.isDef(options.tileLoadFunction) ?
this.tileLoadFunction = goog.isDef(options.tileLoadFunction) ?
options.tileLoadFunction : ol.source.TileImage.defaultTileLoadFunction;
};
@@ -121,7 +121,7 @@ ol.source.TileImage.prototype.getTile = function(z, x, y, projection) {
goog.isDef(tileUrl) ? ol.TileState.IDLE : ol.TileState.EMPTY,
goog.isDef(tileUrl) ? tileUrl : '',
this.crossOrigin,
this.tileLoadFunction_);
this.tileLoadFunction);
this.tileCache.set(tileCoordKey, tile);
return tile;
}