Fix variable declaration in constructor

This commit is contained in:
Frederic Junod
2016-02-18 16:38:09 +01:00
parent 35579ab714
commit 612280c676

View File

@@ -152,12 +152,6 @@ ol.MapBrowserEventHandler = function(map) {
*/
this.dragListenerKeys_ = [];
/**
* @type {?ol.events.Key}
* @private
*/
this.pointerdownListenerKey_ = null;
/**
* The most recent "down" type event (or null if none have occurred).
* Set on pointerdown.
@@ -198,10 +192,18 @@ ol.MapBrowserEventHandler = function(map) {
*/
this.documentPointerEventHandler_ = null;
/**
* @type {?ol.events.Key}
* @private
*/
this.pointerdownListenerKey_ = ol.events.listen(this.pointerEventHandler_,
ol.pointer.EventType.POINTERDOWN,
this.handlePointerDown_, this);
/**
* @type {?ol.events.Key}
* @private
*/
this.relayedListenerKey_ = ol.events.listen(this.pointerEventHandler_,
ol.pointer.EventType.POINTERMOVE,
this.relayEvent_, this);