Remove ol.DEBUG
This commit is contained in:
@@ -144,7 +144,6 @@ ol.events.EventTarget.prototype.removeEventListener = function(type, listener) {
|
||||
var listeners = this.listeners_[type];
|
||||
if (listeners) {
|
||||
var index = listeners.indexOf(listener);
|
||||
ol.DEBUG && console.assert(index != -1, 'listener not found');
|
||||
if (type in this.pendingRemovals_) {
|
||||
// make listener a no-op, and remove later in #dispatchEvent()
|
||||
listeners[index] = ol.nullFunction;
|
||||
|
||||
Reference in New Issue
Block a user