Rename goog.DEBUG to ol.DEBUG
This commit is contained in:
@@ -100,7 +100,7 @@ ol.render.webgl.Immediate.prototype.drawGeometry = function(geometry) {
|
||||
this.drawGeometryCollection(/** @type {ol.geom.GeometryCollection} */ (geometry), null);
|
||||
break;
|
||||
default:
|
||||
goog.DEBUG && console.assert(false, 'Unsupported geometry type: ' + type);
|
||||
ol.DEBUG && console.assert(false, 'Unsupported geometry type: ' + type);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -116,7 +116,7 @@ ol.render.webgl.Immediate.prototype.drawFeature = function(feature, style) {
|
||||
return;
|
||||
}
|
||||
this.setStyle(style);
|
||||
goog.DEBUG && console.assert(geometry, 'geometry must be truthy');
|
||||
ol.DEBUG && console.assert(geometry, 'geometry must be truthy');
|
||||
this.drawGeometry(geometry);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user