From ca9f9b756316bcd16263a5b2dfe7cb7438c9d23c Mon Sep 17 00:00:00 2001 From: ahocevar Date: Fri, 19 Jul 2013 13:52:38 +0200 Subject: [PATCH] Re-adding type cast, as suggested by @elemoine --- src/ol/tilecache.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ol/tilecache.js b/src/ol/tilecache.js index 61d2a940ac..366a8ce364 100644 --- a/src/ol/tilecache.js +++ b/src/ol/tilecache.js @@ -48,7 +48,7 @@ ol.TileCache.prototype.canExpireCache = function() { ol.TileCache.prototype.expireCache = function(usedTiles) { var tile, zKey; while (this.canExpireCache()) { - tile = (this.peekLast()); + tile = /** @type {ol.Tile} */ (this.peekLast()); // TODO: Enforce ol.Tile in ol.TileCache#set goog.asserts.assert(tile instanceof ol.Tile, 'ol.TileCache#expireCache only works with ol.Tile values.');