Remove useless "geometry" FeatureProperty

This commit is contained in:
Antoine Abt
2013-12-18 14:02:48 +01:00
parent 59df68fe68
commit add3cf2233
2 changed files with 3 additions and 4 deletions
+2 -3
View File
@@ -12,7 +12,6 @@ goog.require('ol.style.Style');
* @enum {string}
*/
ol.FeatureProperty = {
GEOMETRY: 'geometry',
STYLE_FUNCTION: 'styleFunction'
};
@@ -44,7 +43,7 @@ ol.Feature = function(opt_geometryOrValues) {
* @type {string}
* @private
*/
this.geometryName_ = ol.FeatureProperty.GEOMETRY;
this.geometryName_ = 'geometry';
/**
* @private
@@ -59,7 +58,7 @@ ol.Feature = function(opt_geometryOrValues) {
this.geometryChangeKey_ = null;
goog.events.listen(
this, ol.Object.getChangeEventType(ol.FeatureProperty.GEOMETRY),
this, ol.Object.getChangeEventType(this.geometryName_),
this.handleGeometryChanged_, false, this);
goog.events.listen(
this, ol.Object.getChangeEventType(ol.FeatureProperty.STYLE_FUNCTION),