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.provide('ol.pointer.MouseSource');
|
||||||
|
|
||||||
|
goog.require('goog.object');
|
||||||
goog.require('ol.pointer.EventSource');
|
goog.require('ol.pointer.EventSource');
|
||||||
|
|
||||||
|
|
||||||
@@ -48,18 +49,6 @@ ol.pointer.MouseSource = function(dispatcher) {
|
|||||||
*/
|
*/
|
||||||
this.pointerMap = dispatcher.pointerMap;
|
this.pointerMap = dispatcher.pointerMap;
|
||||||
|
|
||||||
/**
|
|
||||||
* @const
|
|
||||||
* @type {Array.<string>}
|
|
||||||
*/
|
|
||||||
this.events = [
|
|
||||||
'mousedown',
|
|
||||||
'mousemove',
|
|
||||||
'mouseup',
|
|
||||||
'mouseover',
|
|
||||||
'mouseout'
|
|
||||||
];
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @const
|
* @const
|
||||||
* @type {Object.<string, function(goog.events.BrowserEvent)>}
|
* @type {Object.<string, function(goog.events.BrowserEvent)>}
|
||||||
@@ -106,7 +95,7 @@ ol.pointer.MouseSource.DEDUP_DIST = 25;
|
|||||||
|
|
||||||
/** @inheritDoc */
|
/** @inheritDoc */
|
||||||
ol.pointer.MouseSource.prototype.getEvents = function() {
|
ol.pointer.MouseSource.prototype.getEvents = function() {
|
||||||
return this.events;
|
return goog.object.getKeys(this.mapping);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -30,6 +30,7 @@
|
|||||||
|
|
||||||
goog.provide('ol.pointer.MsSource');
|
goog.provide('ol.pointer.MsSource');
|
||||||
|
|
||||||
|
goog.require('goog.object');
|
||||||
goog.require('ol.pointer.EventSource');
|
goog.require('ol.pointer.EventSource');
|
||||||
|
|
||||||
|
|
||||||
@@ -54,21 +55,6 @@ ol.pointer.MsSource = function(dispatcher) {
|
|||||||
*/
|
*/
|
||||||
this.HAS_BITMAP_TYPE = this.hasBitmapType();
|
this.HAS_BITMAP_TYPE = this.hasBitmapType();
|
||||||
|
|
||||||
/**
|
|
||||||
* @const
|
|
||||||
* @type {Array.<string>}
|
|
||||||
*/
|
|
||||||
this.events = [
|
|
||||||
'MSPointerDown',
|
|
||||||
'MSPointerMove',
|
|
||||||
'MSPointerUp',
|
|
||||||
'MSPointerOut',
|
|
||||||
'MSPointerOver',
|
|
||||||
'MSPointerCancel',
|
|
||||||
'MSGotPointerCapture',
|
|
||||||
'MSLostPointerCapture'
|
|
||||||
];
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @const
|
* @const
|
||||||
* @type {Object.<string, function(goog.events.BrowserEvent)>}
|
* @type {Object.<string, function(goog.events.BrowserEvent)>}
|
||||||
@@ -101,7 +87,7 @@ goog.inherits(ol.pointer.MsSource, ol.pointer.EventSource);
|
|||||||
|
|
||||||
/** @inheritDoc */
|
/** @inheritDoc */
|
||||||
ol.pointer.MsSource.prototype.getEvents = function() {
|
ol.pointer.MsSource.prototype.getEvents = function() {
|
||||||
return this.events;
|
return goog.object.getKeys(this.mapping);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -30,6 +30,7 @@
|
|||||||
|
|
||||||
goog.provide('ol.pointer.NativeSource');
|
goog.provide('ol.pointer.NativeSource');
|
||||||
|
|
||||||
|
goog.require('goog.object');
|
||||||
goog.require('ol.pointer.EventSource');
|
goog.require('ol.pointer.EventSource');
|
||||||
|
|
||||||
|
|
||||||
@@ -48,21 +49,6 @@ ol.pointer.NativeSource = function(dispatcher) {
|
|||||||
*/
|
*/
|
||||||
this.pointerMap = dispatcher.pointerMap;
|
this.pointerMap = dispatcher.pointerMap;
|
||||||
|
|
||||||
/**
|
|
||||||
* @const
|
|
||||||
* @type {Array.<string>}
|
|
||||||
*/
|
|
||||||
this.events = [
|
|
||||||
'pointerdown',
|
|
||||||
'pointermove',
|
|
||||||
'pointerup',
|
|
||||||
'pointerout',
|
|
||||||
'pointerover',
|
|
||||||
'pointercancel',
|
|
||||||
'gotpointercapture',
|
|
||||||
'lostpointercapture'
|
|
||||||
];
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @const
|
* @const
|
||||||
* @type {Object.<string, function(goog.events.BrowserEvent)>}
|
* @type {Object.<string, function(goog.events.BrowserEvent)>}
|
||||||
@@ -83,7 +69,7 @@ goog.inherits(ol.pointer.NativeSource, ol.pointer.EventSource);
|
|||||||
|
|
||||||
/** @inheritDoc */
|
/** @inheritDoc */
|
||||||
ol.pointer.NativeSource.prototype.getEvents = function() {
|
ol.pointer.NativeSource.prototype.getEvents = function() {
|
||||||
return this.events;
|
return goog.object.getKeys(this.mapping);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ goog.provide('ol.pointer.TouchSource');
|
|||||||
|
|
||||||
goog.require('goog.array');
|
goog.require('goog.array');
|
||||||
goog.require('goog.math.Coordinate');
|
goog.require('goog.math.Coordinate');
|
||||||
|
goog.require('goog.object');
|
||||||
goog.require('ol.pointer.EventSource');
|
goog.require('ol.pointer.EventSource');
|
||||||
|
|
||||||
|
|
||||||
@@ -95,17 +96,6 @@ ol.pointer.TouchSource = function(dispatcher, mouseSource) {
|
|||||||
*/
|
*/
|
||||||
this.resetId_ = null;
|
this.resetId_ = null;
|
||||||
|
|
||||||
/**
|
|
||||||
* @const
|
|
||||||
* @type {Array.<string>}
|
|
||||||
*/
|
|
||||||
this.events = [
|
|
||||||
'touchstart',
|
|
||||||
'touchmove',
|
|
||||||
'touchend',
|
|
||||||
'touchcancel'
|
|
||||||
];
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @const
|
* @const
|
||||||
* @type {Object.<string, function(goog.events.BrowserEvent)>}
|
* @type {Object.<string, function(goog.events.BrowserEvent)>}
|
||||||
@@ -122,7 +112,7 @@ goog.inherits(ol.pointer.TouchSource, ol.pointer.EventSource);
|
|||||||
|
|
||||||
/** @inheritDoc */
|
/** @inheritDoc */
|
||||||
ol.pointer.TouchSource.prototype.getEvents = function() {
|
ol.pointer.TouchSource.prototype.getEvents = function() {
|
||||||
return this.events;
|
return goog.object.getKeys(this.mapping);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user