aboutsummaryrefslogtreecommitdiffstats
path: root/lib/caldav/sax/dav_response.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/caldav/sax/dav_response.js')
-rw-r--r--lib/caldav/sax/dav_response.js12
1 files changed, 2 insertions, 10 deletions
diff --git a/lib/caldav/sax/dav_response.js b/lib/caldav/sax/dav_response.js
index f168d97..69a4368 100644
--- a/lib/caldav/sax/dav_response.js
+++ b/lib/caldav/sax/dav_response.js
@@ -165,8 +165,7 @@
oncomplete: function() {
var propstat = this.stack[this.stack.length - 1];
- var hash = propstat.propstat;
-
+ propstat = propstat.propstat;
var key;
var status = this.current.status;
var props = this.current.prop;
@@ -174,21 +173,14 @@
delete this.current.status;
delete this.current.prop;
- var hasProps = false;
-
for (key in props) {
- hasProps = true;
if (Object.hasOwnProperty.call(props, key)) {
- hash[key] = {
+ propstat[key] = {
status: status,
value: props[key]
};
}
}
-
- if (!hasProps) {
- propstat.propstat = false;
- }
}
});