diff options
author | James Lal <james@lightsofapollo.com> | 2013-01-28 11:11:23 -0800 |
---|---|---|
committer | James Lal <james@lightsofapollo.com> | 2013-01-28 11:11:23 -0800 |
commit | a4b6e0a29b42d4ddea8a02d00a97fb49e291bdd5 (patch) | |
tree | bf3539c61581137225f2e848f289271bd7fbb1a7 /lib | |
parent | ee5ae7a9c6ca0ce6136e9b97d4388a1434467b8b (diff) | |
download | jsCalDAV-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.js | 12 |
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; - } } }); |