diff options
Diffstat (limited to 'lib/caldav/resources/calendar.js')
-rw-r--r-- | lib/caldav/resources/calendar.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/caldav/resources/calendar.js b/lib/caldav/resources/calendar.js index a17c5c4..cc8a4d6 100644 --- a/lib/caldav/resources/calendar.js +++ b/lib/caldav/resources/calendar.js @@ -3,6 +3,8 @@ */ (function(module, ns) { + var CalendarQuery = ns.require('request/calendar_query'); + /** * Represents a (Web/Cal)Dav resource type. * @@ -18,6 +20,7 @@ this.url = options.url; } + this.connection = connection; this.updateFromServer(options); } @@ -138,7 +141,9 @@ * @return {CalDav.Request.CalendarQuery} query object. */ createQuery: function() { - + return new CalendarQuery(this.connection, { + url: this.url + }); } }; |