aboutsummaryrefslogtreecommitdiffstats
path: root/lib/caldav/resources/calendar.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/caldav/resources/calendar.js')
-rw-r--r--lib/caldav/resources/calendar.js7
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
+ });
}
};