Use inherited dispatchChangeEvent and getRevision in ol.Feature

This commit is contained in:
Tom Payne
2014-01-21 11:42:43 +01:00
parent 9f4a9e788c
commit 911cb302e8

View File

@@ -41,12 +41,6 @@ ol.Feature = function(opt_geometryOrValues) {
*/
this.geometryName_ = 'geometry';
/**
* @private
* @type {number}
*/
this.revision_ = 0;
/**
* @private
* @type {goog.events.Key}
@@ -76,15 +70,6 @@ ol.Feature = function(opt_geometryOrValues) {
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.
*/
@@ -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.
*/