diff --git a/lib/OpenLayers/Layer/Grid.js b/lib/OpenLayers/Layer/Grid.js index 4a8fdf79bc..fdffa7106b 100644 --- a/lib/OpenLayers/Layer/Grid.js +++ b/lib/OpenLayers/Layer/Grid.js @@ -415,7 +415,7 @@ OpenLayers.Layer.Grid = OpenLayers.Class(OpenLayers.Layer.HTTPRequest, { */ unqueueTile: function(tile) { for (var i=this.tileQueue.length-1; i>=0; --i) { - if (this.tileQueue[i].tile === tile) { + if (this.tileQueue[i] === tile) { this.tileQueue.splice(i, 1); } }