Fixing a fatal typo.

This commit is contained in:
ahocevar
2012-01-28 23:35:56 +01:00
parent e64ed565e2
commit 8efce71271

View File

@@ -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);
}
}