[OpenLayers-Commits] r11215 - in trunk/openlayers:
lib/OpenLayers/Layer tests/Layer
commits-20090109 at openlayers.org
commits-20090109 at openlayers.org
Tue Feb 22 04:06:50 EST 2011
Author: ahocevar
Date: 2011-02-22 01:06:50 -0800 (Tue, 22 Feb 2011)
New Revision: 11215
Modified:
trunk/openlayers/lib/OpenLayers/Layer/Grid.js
trunk/openlayers/tests/Layer/Grid.html
Log:
removing unused _bounds member variable. non-functinal change.
Modified: trunk/openlayers/lib/OpenLayers/Layer/Grid.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Layer/Grid.js 2011-02-22 09:06:03 UTC (rev 11214)
+++ trunk/openlayers/lib/OpenLayers/Layer/Grid.js 2011-02-22 09:06:50 UTC (rev 11215)
@@ -239,7 +239,6 @@
if (this.timerId != null) {
window.clearTimeout(this.timerId);
}
- this._bounds = bounds;
this.timerId = window.setTimeout(
this._moveGriddedTiles,
this.tileLoadingDelay
@@ -663,7 +662,6 @@
* Method: moveGriddedTiles
*/
moveGriddedTiles: function() {
- var bounds = this._bounds;
var shifted = true;
var buffer = this.buffer || 1;
var tlLayer = this.grid[0][0].position;
@@ -678,7 +676,6 @@
this.shiftRow(false);
} else {
shifted = false;
- delete this._bounds;
}
if (shifted) {
// we may have other row or columns to shift, schedule it
Modified: trunk/openlayers/tests/Layer/Grid.html
===================================================================
--- trunk/openlayers/tests/Layer/Grid.html 2011-02-22 09:06:03 UTC (rev 11214)
+++ trunk/openlayers/tests/Layer/Grid.html 2011-02-22 09:06:50 UTC (rev 11215)
@@ -195,7 +195,7 @@
};
layer._moveGriddedTiles = function() {
g_WhichFunc = "MoveGridded";
- g_Bounds = layer._bounds;
+ g_Bounds = layer.map.getExtent();
};
var clearTestBounds = function() {
g_WhichFunc = null;
More information about the Commits
mailing list