OpenLayers OpenLayers

Changeset 2537

Show
Ignore:
Timestamp:
03/08/07 13:44:07 (2 years ago)
Author:
tschaub
Message:

(conditional) destroy!

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sandbox/vector-2.4/lib/OpenLayers/Handler/Point.js

    r2536 r2537  
    8080        this.map.removeLayer(this.layer, false); 
    8181        this.layer.destroy(); 
    82         this.geometry.destroy(); 
     82        if(this.geometry) { 
     83            this.geometry.destroy(); 
     84        } 
    8385        OpenLayers.Handler.prototype.deactivate.apply(this, arguments); 
    8486    },