diff options
Diffstat (limited to 'lib/caldav/request/calendar_home.js')
-rw-r--r-- | lib/caldav/request/calendar_home.js | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/caldav/request/calendar_home.js b/lib/caldav/request/calendar_home.js index da51740..f4f80ac 100644 --- a/lib/caldav/request/calendar_home.js +++ b/lib/caldav/request/calendar_home.js @@ -1,8 +1,5 @@ (function(module, ns) { - var Propfind = ns.require('request/propfind'); - - /** * Creates a propfind request. * @@ -51,8 +48,10 @@ CalendarHome.prototype = { + Propfind: ns.require('request/propfind'), + _findPrincipal: function(url, callback) { - var find = new Propfind(this.connection, { + var find = new this.Propfind(this.connection, { url: url }); @@ -78,7 +77,7 @@ _findCalendarHome: function(url, callback) { var details = {}; - var find = new Propfind(this.connection, { + var find = new this.Propfind(this.connection, { url: url }); @@ -105,7 +104,6 @@ */ send: function(callback) { var self = this; - // find principal self._findPrincipal(self.url, function(err, url) { if (!url) { |