Unnecessary call to appendChild
The writeNode function already calls appendChild on the parent.
This commit is contained in:
@@ -260,8 +260,7 @@ OpenLayers.Format.Filter.v1 = OpenLayers.Class(OpenLayers.Format.XML, {
|
|||||||
*/
|
*/
|
||||||
writeOgcExpression: function(value, node) {
|
writeOgcExpression: function(value, node) {
|
||||||
if (value instanceof OpenLayers.Filter.Function){
|
if (value instanceof OpenLayers.Filter.Function){
|
||||||
var child = this.writeNode("Function", value, node);
|
this.writeNode("Function", value, node);
|
||||||
node.appendChild(child);
|
|
||||||
} else {
|
} else {
|
||||||
this.writeNode("Literal", value, node);
|
this.writeNode("Literal", value, node);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user