Changeset 7104
- Timestamp:
- 05/08/08 10:33:52 (4 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
sandbox/camptocamp/unhcr/lib/OpenLayers/Protocol/SQL/GoogleGears.js
r7103 r7104 208 208 * 209 209 * Parameters: 210 * layer - {<OpenLayers.Layer.Vector>}210 * features - {Array({<OpenLayers.Feature.Vector>})} 211 211 * options - {Object} Map of options, the keys of the map are 212 212 * 'create', 'update', and 'delete' 213 213 */ 214 commit: function( layer, options) {214 commit: function(features, options) { 215 215 OpenLayers.Console.debug("GoogleGears::commit()"); 216 216 var toCreate = [], toUpdate = []; 217 217 218 for (var i = layer.features.length - 1; i >= 0; i--) {219 var feature = layer.features[i];218 for (var i = features.length - 1; i >= 0; i--) { 219 var feature = features[i]; 220 220 switch (feature.state) { 221 221 case OpenLayers.State.INSERT:
