[OpenLayers-Commits] r7492 - sandbox/vector-behavior/lib/OpenLayers/Protocol
commits at openlayers.org
commits at openlayers.org
Fri Jul 11 15:08:02 EDT 2008
Author: elemoine
Date: 2008-07-11 15:08:02 -0400 (Fri, 11 Jul 2008)
New Revision: 7492
Modified:
sandbox/vector-behavior/lib/OpenLayers/Protocol/HTTP.js
Log:
options passed to this.update() and this.delete() cannot be reused
Modified: sandbox/vector-behavior/lib/OpenLayers/Protocol/HTTP.js
===================================================================
--- sandbox/vector-behavior/lib/OpenLayers/Protocol/HTTP.js 2008-07-11 18:57:32 UTC (rev 7491)
+++ sandbox/vector-behavior/lib/OpenLayers/Protocol/HTTP.js 2008-07-11 19:08:02 UTC (rev 7492)
@@ -322,11 +322,15 @@
break;
case OpenLayers.State.UPDATE:
numOps++;
- this.update(feature, options.update);
+ this.update(
+ feature, OpenLayers.Util.extend({}, options.update)
+ );
break;
case OpenLayers.State.DELETE:
numOps++;
- this["delete"](feature, options["delete"]);
+ this["delete"](
+ feature, OpenLayers.Util.extend({}, options["delete"])
+ );
break;
}
}
More information about the Commits
mailing list