Transformed

This commit is contained in:
Tim Schaub
2017-12-11 16:29:33 -07:00
parent 1cdb6a66f0
commit 7f47883c48
737 changed files with 22216 additions and 21609 deletions

View File

@@ -1,13 +1,13 @@
goog.provide('ol.pointer.EventSource');
/**
* @module ol/pointer/EventSource
*/
/**
* @param {ol.pointer.PointerEventHandler} dispatcher Event handler.
* @param {!Object.<string, function(Event)>} mapping Event
* mapping.
* @constructor
*/
ol.pointer.EventSource = function(dispatcher, mapping) {
var _ol_pointer_EventSource_ = function(dispatcher, mapping) {
/**
* @type {ol.pointer.PointerEventHandler}
*/
@@ -26,7 +26,7 @@ ol.pointer.EventSource = function(dispatcher, mapping) {
* List of events supported by this source.
* @return {Array.<string>} Event names
*/
ol.pointer.EventSource.prototype.getEvents = function() {
_ol_pointer_EventSource_.prototype.getEvents = function() {
return Object.keys(this.mapping_);
};
@@ -36,6 +36,7 @@ ol.pointer.EventSource.prototype.getEvents = function() {
* @param {string} eventType The event type.
* @return {function(Event)} Handler
*/
ol.pointer.EventSource.prototype.getHandlerForEvent = function(eventType) {
_ol_pointer_EventSource_.prototype.getHandlerForEvent = function(eventType) {
return this.mapping_[eventType];
};
export default _ol_pointer_EventSource_;