Use inherited dispatchChangeEvent and getRevision in ol.Feature
This commit is contained in:
@@ -41,12 +41,6 @@ ol.Feature = function(opt_geometryOrValues) {
|
|||||||
*/
|
*/
|
||||||
this.geometryName_ = 'geometry';
|
this.geometryName_ = 'geometry';
|
||||||
|
|
||||||
/**
|
|
||||||
* @private
|
|
||||||
* @type {number}
|
|
||||||
*/
|
|
||||||
this.revision_ = 0;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
* @type {goog.events.Key}
|
* @type {goog.events.Key}
|
||||||
@@ -76,15 +70,6 @@ ol.Feature = function(opt_geometryOrValues) {
|
|||||||
goog.inherits(ol.Feature, ol.Object);
|
goog.inherits(ol.Feature, ol.Object);
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* FIXME empty description for jsdoc
|
|
||||||
*/
|
|
||||||
ol.Feature.prototype.dispatchChangeEvent = function() {
|
|
||||||
++this.revision_;
|
|
||||||
this.dispatchEvent(goog.events.EventType.CHANGE);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return {ol.geom.Geometry|undefined} Geometry.
|
* @return {ol.geom.Geometry|undefined} Geometry.
|
||||||
*/
|
*/
|
||||||
@@ -114,14 +99,6 @@ ol.Feature.prototype.getGeometryName = function() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @return {number} Revision.
|
|
||||||
*/
|
|
||||||
ol.Feature.prototype.getRevision = function() {
|
|
||||||
return this.revision_;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return {ol.feature.FeatureStyleFunction|undefined} Style function.
|
* @return {ol.feature.FeatureStyleFunction|undefined} Style function.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user