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/request/errors.js | |
parent | 3170505852bbb6379a712ff816e1715f512516ad (diff) | |
download | jsCalDAV-843b96d1822a28cee8eed1776aa37b6322432249.tar.gz |
don't hold onto .xhr in request
Diffstat (limited to 'lib/caldav/request/errors.js')
-rw-r--r-- | lib/caldav/request/errors.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/caldav/request/errors.js b/lib/caldav/request/errors.js index c3c166e..700cfba 100644 --- a/lib/caldav/request/errors.js +++ b/lib/caldav/request/errors.js @@ -16,26 +16,26 @@ default: message = this.code; } - Error.call(this, message); } + CaldavHttpError.prototype = { __proto__: Error.prototype, constructor: CaldavHttpError } - + // Unauthenticated error for // Google Calendar function UnauthenticatedError() { var message = "Wrong username or/and password"; Error.call(this, message); } - + UnauthenticatedError.prototype = { __proto__: Error.prototype, constructor: UnauthenticatedError } - + module.exports = { CaldavHttpError: CaldavHttpError, UnauthenticatedError: UnauthenticatedError |