Remove gratuitous debug assertions
This commit is contained in:
@@ -142,7 +142,6 @@ ol.renderer.canvas.TileLayer.prototype.prepareFrame = function(
|
||||
if (!drawableTile(tile) && tile.interimTile) {
|
||||
tile = tile.interimTile;
|
||||
}
|
||||
goog.DEBUG && console.assert(tile);
|
||||
if (drawableTile(tile)) {
|
||||
tilesToDrawByZ[z][tile.tileCoord.toString()] = tile;
|
||||
continue;
|
||||
|
||||
@@ -172,7 +172,6 @@ ol.renderer.canvas.VectorLayer.prototype.forEachFeatureAtCoordinate = function(c
|
||||
* @return {?} Callback result.
|
||||
*/
|
||||
function(feature) {
|
||||
goog.DEBUG && console.assert(feature !== undefined, 'received a feature');
|
||||
var key = ol.getUid(feature).toString();
|
||||
if (!(key in features)) {
|
||||
features[key] = true;
|
||||
|
||||
@@ -306,7 +306,6 @@ ol.renderer.canvas.VectorTileLayer.prototype.forEachFeatureAtCoordinate = functi
|
||||
* @return {?} Callback result.
|
||||
*/
|
||||
function(feature) {
|
||||
goog.DEBUG && console.assert(feature, 'received a feature');
|
||||
var key = ol.getUid(feature).toString();
|
||||
if (!(key in features)) {
|
||||
features[key] = true;
|
||||
|
||||
Reference in New Issue
Block a user