diff --git a/lib/OpenLayers/Format/WPSExecute.js b/lib/OpenLayers/Format/WPSExecute.js index 257a77c8e6..3acba4d845 100644 --- a/lib/OpenLayers/Format/WPSExecute.js +++ b/lib/OpenLayers/Format/WPSExecute.js @@ -316,7 +316,6 @@ OpenLayers.Format.WPSExecute = OpenLayers.Class(OpenLayers.Format.XML, { creationTime: node.getAttribute("creationTime") }; this.readChildNodes(node, obj.status); - }, "ProcessSucceeded": function(node,obj) { obj.processSucceeded = true; @@ -359,7 +358,8 @@ OpenLayers.Format.WPSExecute = OpenLayers.Class(OpenLayers.Format.XML, { // try to get *some* value, ignore the empty text values if (this.isSimpleContent(node)) { - for(var child=node.firstChild; child; child=child.nextSibling) { + var child; + for(child=node.firstChild; child; child=child.nextSibling) { switch(child.nodeType) { case 3: // text node case 4: // cdata section @@ -368,7 +368,7 @@ OpenLayers.Format.WPSExecute = OpenLayers.Class(OpenLayers.Format.XML, { } } else { - for(var child=node.firstChild; child; child=child.nextSibling) { + for(child=node.firstChild; child; child=child.nextSibling) { if (child.nodeType == 1) { output.complexData.value = child; }