cache variables for looping
This commit is contained in:
parent
a2bc058063
commit
1b7cf8f8f7
@ -85,8 +85,9 @@ L.TorqueLayer = L.CanvasLayer.extend({
|
||||
},
|
||||
|
||||
_clearTileCaches: function() {
|
||||
for(var t in this._tiles) {
|
||||
var tile = this._tiles[t];
|
||||
var t, tile;
|
||||
for(t in this._tiles) {
|
||||
tile = this._tiles[t];
|
||||
if (tile && tile._tileCache) {
|
||||
tile._tileCache = null;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user