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:
@@ -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] :
|
||||
|
||||
Reference in New Issue
Block a user