update the destroy() for the stock OpenLayers.Feature

git-svn-id: http://svn.openlayers.org/trunk/openlayers@502 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-06-02 16:37:55 +00:00
parent bf98cb620d
commit a844ba9e80

View File

@@ -44,7 +44,19 @@ OpenLayers.Feature.prototype= {
*
*/
destroy: function() {
this.events = null;
this.layer = null;
this.id = null;
this.lonlat = null;
this.data = null;
if (this.marker != null) {
this.marker.destroy();
this.marker = null,
}
if (this.popup != null) {
this.popup.destroy();
this.popup = null;
}
},