aboutsummaryrefslogtreecommitdiffstats
path: root/lib
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 /lib
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 'lib')
-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;
- }
}
});