mirror of
https://github.com/LightAir/turbo-rss.git
synced 2026-11-11 23:07:54 +03:00
changed namespace iteration style
This commit is contained in:
1 parent
b9dfce389e
commit
16ea3467ae
1 file changed
+2
-2
+2
-2
@@ -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