Re-adding type cast, as suggested by @elemoine
This commit is contained in:
+1
-1
@@ -48,7 +48,7 @@ ol.TileCache.prototype.canExpireCache = function() {
|
|||||||
ol.TileCache.prototype.expireCache = function(usedTiles) {
|
ol.TileCache.prototype.expireCache = function(usedTiles) {
|
||||||
var tile, zKey;
|
var tile, zKey;
|
||||||
while (this.canExpireCache()) {
|
while (this.canExpireCache()) {
|
||||||
tile = (this.peekLast());
|
tile = /** @type {ol.Tile} */ (this.peekLast());
|
||||||
// TODO: Enforce ol.Tile in ol.TileCache#set
|
// TODO: Enforce ol.Tile in ol.TileCache#set
|
||||||
goog.asserts.assert(tile instanceof ol.Tile,
|
goog.asserts.assert(tile instanceof ol.Tile,
|
||||||
'ol.TileCache#expireCache only works with ol.Tile values.');
|
'ol.TileCache#expireCache only works with ol.Tile values.');
|
||||||
|
|||||||
Reference in New Issue
Block a user