Make goog.events.listen return proper listener key
When goog.events.listen receives an array of event types, it only return null as listener key. So that calling goog.events.unlistenByKey does not work.
This commit is contained in:
1 parent
b17957b543
commit
51d7cb2820
1 file changed
+1
-1
@@ -199,7 +199,7 @@ ol.MapBrowserEventHandler = function(map) {
|
||||
this.handlePointerDown_, false, this);
|
||||
|
||||
this.relayedListenerKey_ = goog.events.listen(this.pointerEventHandler_,
|
||||
[ol.pointer.EventType.POINTERMOVE],
|
||||
ol.pointer.EventType.POINTERMOVE,
|
||||
this.relayEvent_, false, this);
|
||||
|
||||
if (ol.LEGACY_IE_SUPPORT && ol.IS_LEGACY_IE) {
|
||||
|
||||
Reference in new issue
Block a user