Unnecessary call to appendChild

The writeNode function already calls appendChild on the parent.
This commit is contained in:
tschaub
2012-10-25 12:11:25 -06:00
parent e6399a265d
commit 9e21911ca3
+2 -3
View File
@@ -259,9 +259,8 @@ OpenLayers.Format.Filter.v1 = OpenLayers.Class(OpenLayers.Format.XML, {
* {DOMElement} Updated node element. * {DOMElement} Updated node element.
*/ */
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);
} }