Release notes and additional in-line comment

As suggested by @bartvde.
This commit is contained in:
ahocevar
2013-01-07 15:30:05 +01:00
parent 80f13188a3
commit 4a3651b7da
2 changed files with 16 additions and 0 deletions

View File

@@ -342,6 +342,8 @@ OpenLayers.TileManager = OpenLayers.Class({
img.style.visibility = 'hidden';
}
tile.setImage(img);
// LRU - move tile to the end of the array to mark it as the most
// recently used
OpenLayers.Util.removeItem(this.tileCacheIndex, tile.url);
this.tileCacheIndex.push(tile.url);
}