diff options
author | James Lal <james@lightsofapollo.com> | 2013-01-07 18:39:12 +0100 |
---|---|---|
committer | James Lal <james@lightsofapollo.com> | 2013-01-07 18:39:12 +0100 |
commit | 843b96d1822a28cee8eed1776aa37b6322432249 (patch) | |
tree | d39a4be437ce1d0042bca92517ae674d219611b4 /lib/caldav/xhr.js | |
parent | 3170505852bbb6379a712ff816e1715f512516ad (diff) | |
download | jsCalDAV-843b96d1822a28cee8eed1776aa37b6322432249.tar.gz |
don't hold onto .xhr in request
Diffstat (limited to 'lib/caldav/xhr.js')
-rw-r--r-- | lib/caldav/xhr.js | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/lib/caldav/xhr.js b/lib/caldav/xhr.js index abeae79..230f656 100644 --- a/lib/caldav/xhr.js +++ b/lib/caldav/xhr.js @@ -58,15 +58,6 @@ }, /** - * Aborts request if its in progress. - */ - abort: function abort() { - if (this.xhr) { - this.xhr.abort(); - } - }, - - /** * @param {String} user basic auth user. * @param {String} password basic auth pass. * @return {String} basic auth token. @@ -96,8 +87,6 @@ xhr = new this.xhrClass(); } - this.xhr = xhr; - // This hack is in place due to some platform // bug in gecko when using mozSystem xhr // the credentials only seem to work as expected @@ -154,6 +143,8 @@ this.waiting = true; xhr.send(this._seralize()); + + return xhr; } }; |