Converting control to an interaction

To dispatch events, the interaction base class now inherits from
goog.events.EventTarget.
This commit is contained in:
ahocevar
2013-08-26 17:03:14 +02:00
parent c6e61e2d23
commit 100b85a7b0
10 changed files with 281 additions and 438 deletions

View File

@@ -2,6 +2,7 @@
goog.provide('ol.interaction.Interaction');
goog.require('goog.events.EventTarget');
goog.require('ol.MapBrowserEvent');
goog.require('ol.animation.pan');
goog.require('ol.animation.rotate');
@@ -12,9 +13,12 @@ goog.require('ol.easing');
/**
* @constructor
* @extends {goog.events.EventTarget}
*/
ol.interaction.Interaction = function() {
goog.base(this);
};
goog.inherits(ol.interaction.Interaction, goog.events.EventTarget);
/**