changed namespace iteration style

This commit is contained in:
Max Nowack
2014-12-08 07:35:53 +01:00
parent b9dfce389e
commit 16ea3467ae

View File

@@ -110,9 +110,9 @@ function generateXML (data){
version: '2.0' version: '2.0'
}; };
for(var name in data.custom_namespaces) { Object.keys(data.custom_namespaces).forEach(function(name) {
_attr['xmlns:' + name] = data.custom_namespaces[name]; _attr['xmlns:' + name] = data.custom_namespaces[name];
} });
//only add namespace if GeoRSS is true //only add namespace if GeoRSS is true
if(data.geoRSS){ if(data.geoRSS){