#605 "OpenLayers.Feature.Vector: destroy() is defined twice" by fredj, patch

by euzuro. thx euz, fredj.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@2968 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2007-04-02 10:52:10 +00:00
parent bc7f415d29
commit 833abcf6f1
+7 -12
View File
@@ -54,6 +54,13 @@ OpenLayers.Feature.Vector.prototype =
this.style = style ? style : null; this.style = style ? style : null;
}, },
/**
*
*/
destroy: function() {
this.geometry = null;
OpenLayers.Feature.prototype.destroy.apply(this, arguments);
},
/** /**
* @returns An exact clone of this OpenLayers.Feature * @returns An exact clone of this OpenLayers.Feature
@@ -70,14 +77,6 @@ OpenLayers.Feature.Vector.prototype =
return obj; return obj;
}, },
/**
*
*/
destroy: function() {
this.geometry = null;
OpenLayers.Feature.prototype.destroy.apply(this, arguments);
},
/** /**
* HACK - we need to rewrite this for non-point geometry * HACK - we need to rewrite this for non-point geometry
* @returns null - we need to rewrite this for non-point geometry * @returns null - we need to rewrite this for non-point geometry
@@ -237,10 +236,6 @@ OpenLayers.Feature.Vector.prototype =
} }
}, },
destroy: function() {
},
CLASS_NAME: "OpenLayers.Feature.Vector" CLASS_NAME: "OpenLayers.Feature.Vector"
}); });