OpenLayers OpenLayers

Changeset 7096

Show
Ignore:
Timestamp:
05/08/08 04:18:31 (4 months ago)
Author:
fredj
Message:

clone feature

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sandbox/camptocamp/unhcr/lib/OpenLayers/Protocol/SQL/GoogleGears.js

    r7094 r7096  
    137137            this.db.execute("REPLACE INTO " + this.tableName + " (fid, geometry, properties) VALUES (?, ?, ?)", 
    138138                            this.freezeFeature(feature)); 
    139             createdFeatures.push(feature); 
     139            createdFeatures.push(feature.clone()); 
    140140        } 
    141141 
     
    170170            this.db.execute("REPLACE INTO " + this.tableName + " (fid, geometry, properties) VALUES (?, ?, ?)", 
    171171                            this.freezeFeature(feature)); 
    172             updatedFeatures.push(feature); 
     172            updatedFeatures.push(feature.clone()); 
    173173        } 
    174174