diff options
author | James Lal <james@lightsofapollo.com> | 2012-07-06 07:59:48 -0700 |
---|---|---|
committer | James Lal <james@lightsofapollo.com> | 2012-07-06 07:59:48 -0700 |
commit | b295e4d28e9ee519488d58e79a40d9ec583eaebb (patch) | |
tree | eadedbeba540ab5d017f461fbdae508a49fc94fe /lib/webcals/xhr.js | |
parent | c9c6fcb1098cec5a77149eaedf25f16029f65150 (diff) | |
download | jsCalDAV-b295e4d28e9ee519488d58e79a40d9ec583eaebb.tar.gz |
Revert "Hacks to get this working in browser"
This reverts commit 23ba81022628d75f881a9285e4ca8fc0c394abfe.
Diffstat (limited to 'lib/webcals/xhr.js')
-rw-r--r-- | lib/webcals/xhr.js | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/webcals/xhr.js b/lib/webcals/xhr.js index fb925f0..a8d8d58 100644 --- a/lib/webcals/xhr.js +++ b/lib/webcals/xhr.js @@ -52,7 +52,7 @@ url: null, headers: {}, - data: null, + data: {}, _seralize: function _seralize() { return this.data; @@ -80,12 +80,7 @@ } xhr = this.xhr = new this.xhrClass(); - - if (Xhr.authHack) { - xhr.open(this.method, this.url, this.async); - } else { - xhr.open(this.method, this.url, this.async, this.user, this.password); - } + xhr.open(this.method, this.url, this.async, this.user, this.password); for (header in this.headers) { if (this.headers.hasOwnProperty(header)) { @@ -93,7 +88,6 @@ } } - xhr.onreadystatechange = function onReadyStateChange() { var data; if (xhr.readyState === 4) { |