aboutsummaryrefslogtreecommitdiffstats
path: root/caldav.js
diff options
context:
space:
mode:
authorJames Lal <james@lightsofapollo.com>2013-01-28 11:11:23 -0800
committerJames Lal <james@lightsofapollo.com>2013-01-28 11:11:23 -0800
commita4b6e0a29b42d4ddea8a02d00a97fb49e291bdd5 (patch)
treebf3539c61581137225f2e848f289271bd7fbb1a7 /caldav.js
parentee5ae7a9c6ca0ce6136e9b97d4388a1434467b8b (diff)
downloadjsCalDAV-a4b6e0a29b42d4ddea8a02d00a97fb49e291bdd5.tar.gz
Revert "Merge pull request #10 from mozilla-b2g/empty-propstat"
This reverts commit ee5ae7a9c6ca0ce6136e9b97d4388a1434467b8b, reversing changes made to 75c6e99f3d3ff16cc6f5dc26b7bf1dbbb4b3f648.
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;
- }
}
});