Use goog.DEBUG instead of ol.DEBUG for now
This commit is contained in:
@@ -57,7 +57,7 @@ ol.geom.SimpleGeometry.getLayoutForStride_ = function(stride) {
|
||||
} else if (stride == 4) {
|
||||
layout = ol.geom.GeometryLayout.XYZM;
|
||||
}
|
||||
ol.DEBUG && console.assert(layout, 'unsupported stride: ' + stride);
|
||||
goog.DEBUG && console.assert(layout, 'unsupported stride: ' + stride);
|
||||
return /** @type {ol.geom.GeometryLayout} */ (layout);
|
||||
};
|
||||
|
||||
@@ -75,7 +75,7 @@ ol.geom.SimpleGeometry.getStrideForLayout = function(layout) {
|
||||
} else if (layout == ol.geom.GeometryLayout.XYZM) {
|
||||
stride = 4;
|
||||
}
|
||||
ol.DEBUG && console.assert(stride, 'unsupported layout: ' + layout);
|
||||
goog.DEBUG && console.assert(stride, 'unsupported layout: ' + layout);
|
||||
return /** @type {number} */ (stride);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user