missing var's, p=jorix (thx), r=me (closes #2960)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@10951 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Éric Lemoine
2010-12-06 20:15:15 +00:00
parent b125e045d1
commit 831420aac2
6 changed files with 11 additions and 11 deletions

View File

@@ -162,10 +162,10 @@ OpenLayers.Format.GPX = OpenLayers.Class(OpenLayers.Format.XML, {
// node is either a wpt, trk or rte
// attributes are children of the form <attr>value</attr>
var attributes = {};
var attrNode = node.firstChild;
var attrNode = node.firstChild, value, name;
while(attrNode) {
if(attrNode.nodeType == 1) {
var value = attrNode.firstChild;
value = attrNode.firstChild;
if(value.nodeType == 3 || value.nodeType == 4) {
name = (attrNode.prefix) ?
attrNode.nodeName.split(":")[1] :