OpenLayers OpenLayers

Changeset 1141

Show
Ignore:
Timestamp:
08/09/06 00:18:18 (2 years ago)
Author:
crschmidt
Message:

Fix test failures by changing the failover mode to check for existince of needed variables rather than storing 'newGrid'

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/lib/OpenLayers/Layer/Grid.js

    r1137 r1141  
    220220        do { 
    221221            var row; 
    222  
    223             if (newGrid) { 
     222             
     223            row = this.grid[rowidx++]; 
     224            if (!row) { 
    224225                row = new Array(); 
    225226                this.grid.push(row); 
    226             } else { 
    227                 row = this.grid[rowidx++]; 
    228227            } 
    229228 
     
    248247                var tile; 
    249248                 
    250                 if (newGrid) {                 
     249                tile = row[colidx++]; 
     250                if (!tile) { 
    251251                    tile = this.addTile(tileBounds, px); 
    252252                    tile.draw(); 
    253253                    row.push(tile); 
    254254                } else { 
    255                     tile = row[colidx++]; 
    256255                    tile.moveTo(tileBounds, px); 
    257256                }