Rename goog.DEBUG to ol.DEBUG

This commit is contained in:
Andreas Hocevar
2016-08-28 17:02:49 +02:00
parent 92ab5a079c
commit d1e4b33760
115 changed files with 701 additions and 691 deletions
+2 -2
View File
@@ -17,7 +17,7 @@ goog.require('ol.tilegrid.TileGrid');
*/
ol.tilegrid.WMTS = function(options) {
goog.DEBUG && console.assert(
ol.DEBUG && console.assert(
options.resolutions.length == options.matrixIds.length,
'options resolutions and matrixIds must have equal length (%s == %s)',
options.resolutions.length, options.matrixIds.length);
@@ -48,7 +48,7 @@ ol.inherits(ol.tilegrid.WMTS, ol.tilegrid.TileGrid);
* @return {string} MatrixId..
*/
ol.tilegrid.WMTS.prototype.getMatrixId = function(z) {
goog.DEBUG && console.assert(0 <= z && z < this.matrixIds_.length,
ol.DEBUG && console.assert(0 <= z && z < this.matrixIds_.length,
'attempted to retrieve matrixId for illegal z (%s)', z);
return this.matrixIds_[z];
};