OpenLayers OpenLayers

Changeset 5624

Show
Ignore:
Timestamp:
01/02/08 14:06:07 (1 year ago)
Author:
tschaub
Message:

Point, path, and poly handlers now clean up before calling callbacks. r=crschmidt (closes #1239)

Files:

Legend:

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

    r5614 r5624  
    153153    finalize: function() { 
    154154        this.layer.renderer.clear(); 
    155         this.callback("done", [this.geometryClone()]); 
    156         this.destroyFeature(); 
    157155        this.drawing = false; 
    158156        this.mouseDown = false; 
    159157        this.lastDown = null; 
    160158        this.lastUp = null; 
     159        this.callback("done", [this.geometryClone()]); 
     160        this.destroyFeature(); 
    161161    }, 
    162162 
     
    167167    cancel: function() { 
    168168        this.layer.renderer.clear(); 
    169         this.callback("cancel", [this.geometryClone()]); 
    170         this.destroyFeature(); 
    171169        this.drawing = false; 
    172170        this.mouseDown = false; 
    173171        this.lastDown = null; 
    174172        this.lastUp = null; 
     173        this.callback("cancel", [this.geometryClone()]); 
     174        this.destroyFeature(); 
    175175    }, 
    176176