OpenLayers OpenLayers

Changeset 576

Show
Ignore:
Timestamp:
06/12/06 12:00:00 (2 years ago)
Author:
euzuro
Message:

recommitting r574 - the bug was in the OpenLayers.Feature destroy() function, which was not checking to ensure a valid map setting.

Files:

Legend:

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

    r526 r576  
    4747 
    4848        //remove the popup from the map 
    49         if (this.popup != null) { 
    50             this.layer.map.removePopup(this.popup); 
     49        if ((this.layer != null) && (this.layer.map != null)) { 
     50            if (this.popup != null) { 
     51                this.layer.map.removePopup(this.popup); 
     52            } 
    5153        } 
    5254 
  • trunk/openlayers/lib/OpenLayers/Layer/WFS.js

    r575 r576  
    4848     
    4949 
     50    /** 
     51     *  
     52     */ 
     53    destroy: function() { 
     54        OpenLayers.Layer.Grid.prototype.destroy.apply(this, arguments); 
     55        OpenLayers.Layer.Markers.prototype.destroy.apply(this, arguments); 
     56    }, 
     57     
    5058    /**  
    5159    * @param {OpenLayers.Bounds} bounds