OpenLayers OpenLayers

Changeset 6564

Show
Ignore:
Timestamp:
03/20/08 03:26:21 (10 months ago)
Author:
elemoine
Message:

dragging mode of modify feature control is broken. r=crschmidt,tschaub. (closes #1418)

Files:

Legend:

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

    r5976 r6564  
    3434    /** 
    3535     * Property: feature 
    36      * {<OpenLayers.Feature.Vector>} The feature currently being handled. 
     36     * {<OpenLayers.Feature.Vector>} The last feature that was hovered. 
    3737     */ 
    3838    feature: null, 
     
    247247                    this.triggerCallback(type, 'out', [this.lastFeature]); 
    248248                } 
     249                // next time the mouse goes in a feature whose geometry type 
     250                // doesn't match we don't want to call the 'out' callback 
     251                // again, so let's set this.feature to null so that 
     252                // previouslyIn will evaluate to false the next time 
     253                // we enter handle. Yes, a bit hackish... 
     254                this.feature = null; 
    249255            } 
    250256        } else {