mirror of
https://github.com/LightAir/turbo-rss.git
synced 2026-02-04 03:56:19 +00:00
changed namespace iteration style
This commit is contained in:
@@ -110,9 +110,9 @@ function generateXML (data){
|
||||
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];
|
||||
}
|
||||
});
|
||||
|
||||
//only add namespace if GeoRSS is true
|
||||
if(data.geoRSS){
|
||||
|
||||
Reference in New Issue
Block a user