aboutsummaryrefslogtreecommitdiffstats
path: root/caldav.js
diff options
context:
space:
mode:
authorJames Lal <james@lightsofapollo.com>2013-03-06 12:08:36 -0800
committerJames Lal <james@lightsofapollo.com>2013-03-06 12:08:36 -0800
commitfbd1d6d84ef1d793fd42bc32aa8bc46f1eb5534b (patch)
treeb52d3bf0aabb1dcb563f5da0c5968f35a1e805cb /caldav.js
parent3c19897e7eb888c8127b19f65462f3f6927a20ce (diff)
parente36e68c7373e48ba8e12d0b8f837a395bf71ebfb (diff)
downloadjsCalDAV-fbd1d6d84ef1d793fd42bc32aa8bc46f1eb5534b.tar.gz
Merge branch 'master' of github.com:mozilla-b2g/caldav
Diffstat (limited to 'caldav.js')
-rw-r--r--caldav.js12
1 files changed, 2 insertions, 10 deletions
diff --git a/caldav.js b/caldav.js
index fda846e..7f3d367 100644
--- a/caldav.js
+++ b/caldav.js
@@ -2527,8 +2527,7 @@ function write (chunk) {
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;
@@ -2536,21 +2535,14 @@ function write (chunk) {
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;
- }
}
});