Set ol.pointer.*Source#mapping_ properties to private

This commit is contained in:
Frederic Junod
2014-03-10 11:26:28 +01:00
committed by tsauerwein
parent a916e2500b
commit b2e946794f
4 changed files with 16 additions and 12 deletions
+4 -3
View File
@@ -50,10 +50,11 @@ ol.pointer.NativeSource = function(dispatcher) {
this.pointerMap = dispatcher.pointerMap;
/**
* @private
* @const
* @type {Object.<string, function(goog.events.BrowserEvent)>}
*/
this.mapping = {
this.mapping_ = {
'pointerdown': this.pointerDown,
'pointermove': this.pointerMove,
'pointerup': this.pointerUp,
@@ -69,13 +70,13 @@ goog.inherits(ol.pointer.NativeSource, ol.pointer.EventSource);
/** @inheritDoc */
ol.pointer.NativeSource.prototype.getEvents = function() {
return goog.object.getKeys(this.mapping);
return goog.object.getKeys(this.mapping_);
};
/** @inheritDoc */
ol.pointer.NativeSource.prototype.getMapping = function() {
return this.mapping;
return this.mapping_;
};