Set ol.pointer.*Source#mapping_ properties to private
This commit is contained in:
committed by
tsauerwein
parent
a916e2500b
commit
b2e946794f
@@ -91,10 +91,11 @@ ol.pointer.TouchSource = function(dispatcher, mouseSource) {
|
||||
this.resetId_ = null;
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @const
|
||||
* @type {Object.<string, function(goog.events.BrowserEvent)>}
|
||||
*/
|
||||
this.mapping = {
|
||||
this.mapping_ = {
|
||||
'touchstart': this.touchstart,
|
||||
'touchmove': this.touchmove,
|
||||
'touchend': this.touchend,
|
||||
@@ -113,13 +114,13 @@ ol.pointer.TouchSource.POINTER_TYPE = 'touch';
|
||||
|
||||
/** @inheritDoc */
|
||||
ol.pointer.TouchSource.prototype.getEvents = function() {
|
||||
return goog.object.getKeys(this.mapping);
|
||||
return goog.object.getKeys(this.mapping_);
|
||||
};
|
||||
|
||||
|
||||
/** @inheritDoc */
|
||||
ol.pointer.TouchSource.prototype.getMapping = function() {
|
||||
return this.mapping;
|
||||
return this.mapping_;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user