Don't bother making forEachTileCoord abortable

This commit is contained in:
Tom Payne
2012-07-21 00:23:45 +02:00
parent 277c1ea3a6
commit 89efc96dd5
3 changed files with 2 additions and 6 deletions

View File

@@ -73,7 +73,6 @@ ol.dom.TileLayerRenderer.prototype.redraw = function() {
newTiles = true;
}
}
return false;
}, this);
if (newTiles) {

View File

@@ -51,7 +51,7 @@ ol.TileBounds.prototype.clone = function() {
/**
* @param {number} z Z.
* @param {function(this: T, ol.TileCoord): boolean} f Callback.
* @param {function(this: T, ol.TileCoord)} f Callback.
* @param {T=} opt_obj The object to be used for the value of 'this' within f.
* @template T
*/
@@ -62,9 +62,7 @@ ol.TileBounds.prototype.forEachTileCoord = function(z, f, opt_obj) {
tileCoord.x = x;
for (y = this.minY; y <= this.maxY; ++y) {
tileCoord.y = y;
if (f.call(opt_obj, tileCoord)) {
return;
}
f.call(opt_obj, tileCoord);
goog.asserts.assert(tileCoord.z == z);
goog.asserts.assert(tileCoord.x == x);
goog.asserts.assert(tileCoord.y == y);

View File

@@ -339,7 +339,6 @@ ol.webgl.TileLayerRenderer.prototype.redraw = function() {
goog.events.EventType.CHANGE, this.handleTileChange, false, this);
}
}
return false;
}, this);
};