Remove ol.pointer.*Source#events properties
This commit is contained in:
committed by
tsauerwein
parent
6b4b62dd3a
commit
a74ad0e459
@@ -30,6 +30,7 @@
|
||||
|
||||
goog.provide('ol.pointer.MouseSource');
|
||||
|
||||
goog.require('goog.object');
|
||||
goog.require('ol.pointer.EventSource');
|
||||
|
||||
|
||||
@@ -48,18 +49,6 @@ ol.pointer.MouseSource = function(dispatcher) {
|
||||
*/
|
||||
this.pointerMap = dispatcher.pointerMap;
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {Array.<string>}
|
||||
*/
|
||||
this.events = [
|
||||
'mousedown',
|
||||
'mousemove',
|
||||
'mouseup',
|
||||
'mouseover',
|
||||
'mouseout'
|
||||
];
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {Object.<string, function(goog.events.BrowserEvent)>}
|
||||
@@ -106,7 +95,7 @@ ol.pointer.MouseSource.DEDUP_DIST = 25;
|
||||
|
||||
/** @inheritDoc */
|
||||
ol.pointer.MouseSource.prototype.getEvents = function() {
|
||||
return this.events;
|
||||
return goog.object.getKeys(this.mapping);
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user