Rename goog.DEBUG to ol.DEBUG
This commit is contained in:
@@ -165,7 +165,7 @@ ol.format.WKT.encodeMultiPolygonGeometry_ = function(geom) {
|
||||
ol.format.WKT.encode_ = function(geom) {
|
||||
var type = geom.getType();
|
||||
var geometryEncoder = ol.format.WKT.GeometryEncoder_[type];
|
||||
goog.DEBUG && console.assert(geometryEncoder, 'geometryEncoder should be defined');
|
||||
ol.DEBUG && console.assert(geometryEncoder, 'geometryEncoder should be defined');
|
||||
var enc = geometryEncoder(geom);
|
||||
type = type.toUpperCase();
|
||||
if (enc.length === 0) {
|
||||
@@ -572,7 +572,7 @@ ol.format.WKT.Parser.prototype.match = function(type) {
|
||||
ol.format.WKT.Parser.prototype.parse = function() {
|
||||
this.consume_();
|
||||
var geometry = this.parseGeometry_();
|
||||
goog.DEBUG && console.assert(this.token_.type == ol.format.WKT.TokenType.EOF,
|
||||
ol.DEBUG && console.assert(this.token_.type == ol.format.WKT.TokenType.EOF,
|
||||
'token type should be end of file');
|
||||
return geometry;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user