when we destroy a feature, remove its popup from the map through the removePopup() function

git-svn-id: http://svn.openlayers.org/trunk/openlayers@526 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-06-05 19:00:03 +00:00
parent 99bfb9a37d
commit 82d4a1327c

View File

@@ -44,6 +44,12 @@ OpenLayers.Feature.prototype= {
*
*/
destroy: function() {
//remove the popup from the map
if (this.popup != null) {
this.layer.map.removePopup(this.popup);
}
this.events = null;
this.layer = null;
this.id = null;