Don't remove event listener for this.handleUp_ twice.

The listener key is in this.dragListenerKeys_
This commit is contained in:
Frederic Junod
2013-01-28 10:31:24 +01:00
parent 01098c4d8c
commit 9e030854b2

View File

@@ -287,11 +287,6 @@ ol.MapBrowserEventHandler.prototype.disposeInternal = function() {
goog.events.EventType.TOUCHSTART :
goog.events.EventType.MOUSEDOWN,
this.handleDown_, false, this);
goog.events.unlisten(element,
ol.BrowserFeature.HAS_TOUCH ?
goog.events.EventType.TOUCHEND :
goog.events.EventType.MOUSEUP,
this.handleUp_, false, this);
goog.events.unlistenByKey(this.clickListenerKey_);
if (!goog.isNull(this.dragListenerKeys_)) {
goog.array.forEach(this.dragListenerKeys_, goog.events.unlistenByKey);