diff options
author | James Lal <james@lightsofapollo.com> | 2012-07-06 14:52:13 -0700 |
---|---|---|
committer | James Lal <james@lightsofapollo.com> | 2012-07-06 14:52:13 -0700 |
commit | 684ec0e95608e3212d8dac1b2c7489cf7e5c3078 (patch) | |
tree | 15ff517b5715f4f32f44a70c2698caeb9426ee28 /lib/caldav/request/propfind.js | |
parent | fa1bc078c2953c4d81d7c5c17e4f3a4c0e3febeb (diff) | |
download | jsCalDAV-684ec0e95608e3212d8dac1b2c7489cf7e5c3078.tar.gz |
Reworked requests to take connection object and options
Diffstat (limited to 'lib/caldav/request/propfind.js')
-rw-r--r-- | lib/caldav/request/propfind.js | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/caldav/request/propfind.js b/lib/caldav/request/propfind.js index 7202ea5..e54b669 100644 --- a/lib/caldav/request/propfind.js +++ b/lib/caldav/request/propfind.js @@ -20,14 +20,20 @@ DavResponse ); - this.xhr.headers['Depth'] = this.depth; + this.xhr.headers['Depth'] = 0; this.xhr.method = 'PROPFIND'; } Propfind.prototype = { __proto__: Abstract.prototype, - depth: 0, + get depth() { + return this.xhr.headers.Depth; + }, + + set depth(val) { + this.xhr.headers.Depth = val; + }, /** * Adds property to request. |