Use goog.DEBUG instead of ol.DEBUG for now
This commit is contained in:
@@ -130,7 +130,7 @@ ol.Image.prototype.load = function() {
|
||||
if (this.state == ol.ImageState.IDLE || this.state == ol.ImageState.ERROR) {
|
||||
this.state = ol.ImageState.LOADING;
|
||||
this.changed();
|
||||
ol.DEBUG && console.assert(!this.imageListenerKeys_,
|
||||
goog.DEBUG && console.assert(!this.imageListenerKeys_,
|
||||
'this.imageListenerKeys_ should be null');
|
||||
this.imageListenerKeys_ = [
|
||||
ol.events.listenOnce(this.image_, ol.events.EventType.ERROR,
|
||||
@@ -157,7 +157,7 @@ ol.Image.prototype.setImage = function(image) {
|
||||
* @private
|
||||
*/
|
||||
ol.Image.prototype.unlistenImage_ = function() {
|
||||
ol.DEBUG && console.assert(this.imageListenerKeys_,
|
||||
goog.DEBUG && console.assert(this.imageListenerKeys_,
|
||||
'this.imageListenerKeys_ should not be null');
|
||||
this.imageListenerKeys_.forEach(ol.events.unlistenByKey);
|
||||
this.imageListenerKeys_ = null;
|
||||
|
||||
Reference in New Issue
Block a user