Remove incorrect assert, thanks @elemoine
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
goog.provide('ol.TilePriorityFunction');
|
||||
goog.provide('ol.TileQueue');
|
||||
|
||||
goog.require('goog.asserts');
|
||||
goog.require('goog.events');
|
||||
goog.require('goog.events.EventType');
|
||||
goog.require('ol.Coordinate');
|
||||
@@ -83,7 +82,6 @@ ol.TileQueue.prototype.handleTileChange = function() {
|
||||
ol.TileQueue.prototype.loadMoreTiles = function(maxTotalLoading, maxNewLoads) {
|
||||
var newLoads = Math.min(
|
||||
maxTotalLoading - this.getTilesLoading(), maxNewLoads, this.getCount());
|
||||
goog.asserts.assert(newLoads > 0);
|
||||
var i, tile;
|
||||
for (i = 0; i < newLoads; ++i) {
|
||||
tile = /** @type {ol.Tile} */ (this.dequeue()[0]);
|
||||
|
||||
Reference in New Issue
Block a user