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:
@@ -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;
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user