aboutsummaryrefslogtreecommitdiffstats
path: root/lib/caldav/request/abstract.js
diff options
context:
space:
mode:
authorJames Lal <james@lightsofapollo.com>2013-01-07 18:39:12 +0100
committerJames Lal <james@lightsofapollo.com>2013-01-07 18:39:12 +0100
commit843b96d1822a28cee8eed1776aa37b6322432249 (patch)
treed39a4be437ce1d0042bca92517ae674d219611b4 /lib/caldav/request/abstract.js
parent3170505852bbb6379a712ff816e1715f512516ad (diff)
downloadjsCalDAV-843b96d1822a28cee8eed1776aa37b6322432249.tar.gz
don't hold onto .xhr in request
Diffstat (limited to 'lib/caldav/request/abstract.js')
-rw-r--r--lib/caldav/request/abstract.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/caldav/request/abstract.js b/lib/caldav/request/abstract.js
index eb6297b..7116217 100644
--- a/lib/caldav/request/abstract.js
+++ b/lib/caldav/request/abstract.js
@@ -65,8 +65,7 @@
};
// in the future we may stream data somehow
- req.send(function xhrResult() {
- var xhr = req.xhr;
+ req.send(function xhrResult(err, xhr) {
if (xhr.status > 199 && xhr.status < 300) {
// success
self.sax.close();