remove local scope variables from global namespace.

git-svn-id: http://svn.openlayers.org/trunk/openlayers@5028 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Paul Spencer
2007-10-19 18:34:00 +00:00
parent 4bafcddff1
commit 65d3947045
13 changed files with 19 additions and 19 deletions

View File

@@ -302,7 +302,7 @@ OpenLayers.Format.KML = OpenLayers.Class(OpenLayers.Format.XML, {
for(var i=0; i<children.length; ++i ) {
child = children[i];
if(child.nodeType == 1) {
type = (child.prefix) ?
var type = (child.prefix) ?
child.nodeName.split(":")[1] :
child.nodeName;
var parser = this.parseGeometry[type.toLowerCase()];
@@ -337,10 +337,10 @@ OpenLayers.Format.KML = OpenLayers.Class(OpenLayers.Format.XML, {
if(grandchildren.length == 1) {
grandchild = grandchildren[0];
if(grandchild.nodeType == 3 || grandchild.nodeType == 4) {
name = (child.prefix) ?
var name = (child.prefix) ?
child.nodeName.split(":")[1] :
child.nodeName;
value = grandchild.nodeValue.replace(
var value = grandchild.nodeValue.replace(
this.regExes.trimSpace, "");
attributes[name] = value;
}