Fix test failures by changing the failover mode to check for existince of needed variables rather than storing 'newGrid'
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1141 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -219,12 +219,11 @@ OpenLayers.Layer.Grid.prototype =
|
||||
|
||||
do {
|
||||
var row;
|
||||
|
||||
if (newGrid) {
|
||||
|
||||
row = this.grid[rowidx++];
|
||||
if (!row) {
|
||||
row = new Array();
|
||||
this.grid.push(row);
|
||||
} else {
|
||||
row = this.grid[rowidx++];
|
||||
}
|
||||
|
||||
tileoffsetlon = startLon;
|
||||
@@ -247,12 +246,12 @@ OpenLayers.Layer.Grid.prototype =
|
||||
var px = new OpenLayers.Pixel(x, y);
|
||||
var tile;
|
||||
|
||||
if (newGrid) {
|
||||
tile = row[colidx++];
|
||||
if (!tile) {
|
||||
tile = this.addTile(tileBounds, px);
|
||||
tile.draw();
|
||||
row.push(tile);
|
||||
} else {
|
||||
tile = row[colidx++];
|
||||
tile.moveTo(tileBounds, px);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user