Add ol.CollectionEvent#getElement
This commit is contained in:
@@ -35,14 +35,23 @@ ol.CollectionEvent = function(type, opt_elem, opt_target) {
|
|||||||
goog.base(this, type, opt_target);
|
goog.base(this, type, opt_target);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @private
|
||||||
* @type {*}
|
* @type {*}
|
||||||
*/
|
*/
|
||||||
this.elem = opt_elem;
|
this.elem_ = opt_elem;
|
||||||
|
|
||||||
};
|
};
|
||||||
goog.inherits(ol.CollectionEvent, goog.events.Event);
|
goog.inherits(ol.CollectionEvent, goog.events.Event);
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return {*} The element to which this event pertains.
|
||||||
|
*/
|
||||||
|
ol.CollectionEvent.prototype.getElement = function() {
|
||||||
|
return this.elem_;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @enum {string}
|
* @enum {string}
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user