Fix parsing empty Webdav property nodes

Return empty string instead of undefined
This commit is contained in:
Vincent Petry 2016-02-02 11:52:55 +01:00
parent 3a6d065e50
commit d81c00304f
2 changed files with 2 additions and 2 deletions

View File

@ -92,7 +92,7 @@
for (var key in propStat.properties) {
var propKey = key;
if (davProperties[key]) {
if (key in davProperties) {
propKey = davProperties[key];
}
props[propKey] = propStat.properties[key];

View File

@ -243,7 +243,7 @@ dav.Client.prototype = {
}
}
return content || propNode.textContent || propNode.text;
return content || propNode.textContent || propNode.text || '';
},
/**