Remove ol.pointer.*Source#events properties
This commit is contained in:
committed by
tsauerwein
parent
6b4b62dd3a
commit
a74ad0e459
@@ -32,6 +32,7 @@ goog.provide('ol.pointer.TouchSource');
|
||||
|
||||
goog.require('goog.array');
|
||||
goog.require('goog.math.Coordinate');
|
||||
goog.require('goog.object');
|
||||
goog.require('ol.pointer.EventSource');
|
||||
|
||||
|
||||
@@ -95,17 +96,6 @@ ol.pointer.TouchSource = function(dispatcher, mouseSource) {
|
||||
*/
|
||||
this.resetId_ = null;
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {Array.<string>}
|
||||
*/
|
||||
this.events = [
|
||||
'touchstart',
|
||||
'touchmove',
|
||||
'touchend',
|
||||
'touchcancel'
|
||||
];
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {Object.<string, function(goog.events.BrowserEvent)>}
|
||||
@@ -122,7 +112,7 @@ goog.inherits(ol.pointer.TouchSource, ol.pointer.EventSource);
|
||||
|
||||
/** @inheritDoc */
|
||||
ol.pointer.TouchSource.prototype.getEvents = function() {
|
||||
return this.events;
|
||||
return goog.object.getKeys(this.mapping);
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user