Revert to cloning the context object

This commit is contained in:
Bart van den Eijnden
2014-03-05 16:30:23 +01:00
parent 75f139bb27
commit dd9311e79e

View File

@@ -1419,7 +1419,7 @@ ol.format.GML.writeFeature_ = function(node, feature, objectStack) {
}
}
}
var item = objectStack[0];
var item = goog.object.clone(context);
item.node = node;
ol.xml.pushSerializeAndPop(/** @type {ol.xml.NodeStackItem} */
(item), context.serializers,
@@ -1619,7 +1619,6 @@ ol.format.GML.prototype.writeFeaturesNode = function(features) {
ol.xml.setAttributeNS(node, 'http://www.w3.org/2001/XMLSchema-instance',
'xsi:schemaLocation', this.schemaLocation_);
var context = {
node: node,
srsName: this.srsName_,
curve: this.curve_,
surface: this.surface_,