OpenLayers OpenLayers

Changeset 7276

Show
Ignore:
Timestamp:
05/27/08 03:53:48 (6 months ago)
Author:
elemoine
Message:

Layer.Vector should destroy itself before its parent, r=fredj (closes #1536)

Files:

Legend:

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

    r6947 r7276  
    192192     */ 
    193193    destroy: function() { 
    194         OpenLayers.Layer.prototype.destroy.apply(this, arguments);   
    195  
    196194        this.destroyFeatures(); 
    197195        this.features = null; 
     
    203201        this.geometryType = null; 
    204202        this.drawn = null; 
     203        OpenLayers.Layer.prototype.destroy.apply(this, arguments);   
    205204    }, 
    206205