Replace goog.events.Event/EventTarget system with our own
This also removes goog.events.listen, goog.events.unlisten, goog.events.unlistenByKey and goog.events.BrowserEvent.
This commit is contained in:
@@ -5,8 +5,8 @@ goog.provide('ol.interaction.DrawGeometryFunctionType');
|
||||
goog.provide('ol.interaction.DrawMode');
|
||||
|
||||
goog.require('goog.asserts');
|
||||
goog.require('goog.events');
|
||||
goog.require('goog.events.Event');
|
||||
goog.require('ol.events');
|
||||
goog.require('ol.events.Event');
|
||||
goog.require('ol.Collection');
|
||||
goog.require('ol.Coordinate');
|
||||
goog.require('ol.Feature');
|
||||
@@ -55,7 +55,7 @@ ol.interaction.DrawEventType = {
|
||||
* this type.
|
||||
*
|
||||
* @constructor
|
||||
* @extends {goog.events.Event}
|
||||
* @extends {ol.events.Event}
|
||||
* @implements {oli.DrawEvent}
|
||||
* @param {ol.interaction.DrawEventType} type Type.
|
||||
* @param {ol.Feature} feature The feature drawn.
|
||||
@@ -72,7 +72,7 @@ ol.interaction.DrawEvent = function(type, feature) {
|
||||
this.feature = feature;
|
||||
|
||||
};
|
||||
goog.inherits(ol.interaction.DrawEvent, goog.events.Event);
|
||||
goog.inherits(ol.interaction.DrawEvent, ol.events.Event);
|
||||
|
||||
|
||||
/**
|
||||
@@ -300,7 +300,7 @@ ol.interaction.Draw = function(options) {
|
||||
this.freehandCondition_ = options.freehandCondition ?
|
||||
options.freehandCondition : ol.events.condition.shiftKeyOnly;
|
||||
|
||||
goog.events.listen(this,
|
||||
ol.events.listen(this,
|
||||
ol.Object.getChangeEventType(ol.interaction.InteractionProperty.ACTIVE),
|
||||
this.updateState_, false, this);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user