OpenLayers OpenLayers

Changeset 502

Show
Ignore:
Timestamp:
06/02/06 12:37:55 (3 years ago)
Author:
euzuro
Message:

update the destroy() for the stock OpenLayers.Feature

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/lib/OpenLayers/Feature.js

    r441 r502  
    4545     */ 
    4646    destroy: function() { 
     47        this.events = null; 
    4748        this.layer = null; 
     49        this.id = null; 
     50        this.lonlat = null; 
     51        this.data = null; 
     52        if (this.marker != null) { 
     53            this.marker.destroy(); 
     54            this.marker = null, 
     55        } 
     56        if (this.popup != null) { 
     57            this.popup.destroy(); 
     58            this.popup = null; 
     59        } 
    4860    }, 
    4961