Files
openlayers/src/ol/event/Sequence.js
ahocevar 6213e07f96 Navigation control with Drag sequence Dragger
This is totally unfinished, but tests pass, and it is only meant to give the map a Navigation control.
2012-06-21 14:08:50 +02:00

40 lines
673 B
JavaScript

goog.provide('ol.event.Sequence');
/**
* @constructor
*/
ol.event.Sequence = function() {
/**
@private
@type {Element}
*/
this.element_ = null;
/**
* Event types provided by this sequence.
* @enum {string}
*/
this.eventTypes_ = {};
/**
* Event mappings provided by this sequence.
* @enum {Object}
*/
this.providedEvents_ = {};
};
/**
@param {Element} element
*/
ol.event.Sequence.prototype.setElement = function(element) {
this.element_ = element;
};
/**
@return {Object}
*/
ol.event.Sequence.prototype.getProvidedEvents = function() {
return this.providedEvents_;
};