Remove ol.pointer.*Source#events properties

This commit is contained in:
Frederic Junod
2014-03-10 10:46:10 +01:00
committed by tsauerwein
parent 6b4b62dd3a
commit a74ad0e459
4 changed files with 8 additions and 57 deletions
+2 -16
View File
@@ -30,6 +30,7 @@
goog.provide('ol.pointer.MsSource');
goog.require('goog.object');
goog.require('ol.pointer.EventSource');
@@ -54,21 +55,6 @@ ol.pointer.MsSource = function(dispatcher) {
*/
this.HAS_BITMAP_TYPE = this.hasBitmapType();
/**
* @const
* @type {Array.<string>}
*/
this.events = [
'MSPointerDown',
'MSPointerMove',
'MSPointerUp',
'MSPointerOut',
'MSPointerOver',
'MSPointerCancel',
'MSGotPointerCapture',
'MSLostPointerCapture'
];
/**
* @const
* @type {Object.<string, function(goog.events.BrowserEvent)>}
@@ -101,7 +87,7 @@ goog.inherits(ol.pointer.MsSource, ol.pointer.EventSource);
/** @inheritDoc */
ol.pointer.MsSource.prototype.getEvents = function() {
return this.events;
return goog.object.getKeys(this.mapping);
};