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

View File

@@ -23,7 +23,7 @@ goog.require('ol.style.Image');
*/
ol.style.RegularShape = function(options) {
goog.DEBUG && console.assert(
ol.DEBUG && console.assert(
options.radius !== undefined || options.radius1 !== undefined,
'must provide either "radius" or "radius1"');
@@ -363,7 +363,7 @@ ol.style.RegularShape.prototype.render_ = function(atlasManager) {
var info = atlasManager.add(
id, size, size, this.draw_.bind(this, renderOptions),
renderHitDetectionCallback);
goog.DEBUG && console.assert(info, 'shape size is too large');
ol.DEBUG && console.assert(info, 'shape size is too large');
this.canvas_ = info.image;
this.origin_ = [info.offsetX, info.offsetY];