Use goog.DEBUG instead of ol.DEBUG for now
This commit is contained in:
@@ -271,11 +271,11 @@ ol.MapBrowserEventHandler.prototype.handlePointerUp_ = function(pointerEvent) {
|
||||
// to 0).
|
||||
// See http://www.w3.org/TR/pointerevents/#button-states
|
||||
if (!this.dragging_ && this.isMouseActionButton_(pointerEvent)) {
|
||||
ol.DEBUG && console.assert(this.down_, 'this.down_ must be truthy');
|
||||
goog.DEBUG && console.assert(this.down_, 'this.down_ must be truthy');
|
||||
this.emulateClick_(this.down_);
|
||||
}
|
||||
|
||||
ol.DEBUG && console.assert(this.activePointers_ >= 0,
|
||||
goog.DEBUG && console.assert(this.activePointers_ >= 0,
|
||||
'this.activePointers_ should be equal to or larger than 0');
|
||||
if (this.activePointers_ === 0) {
|
||||
this.dragListenerKeys_.forEach(ol.events.unlistenByKey);
|
||||
|
||||
Reference in New Issue
Block a user