aboutsummaryrefslogtreecommitdiffstats
path: root/lib/caldav/resources/calendar.js
diff options
context:
space:
mode:
authorJames Lal <james@lightsofapollo.com>2012-07-07 09:00:49 -0700
committerJames Lal <james@lightsofapollo.com>2012-07-07 09:00:49 -0700
commita3f59b6298d87c3a72c167142546a816b3f2e73d (patch)
treec7b1d138a2c766ca6fc50093a75e74743c16a2b8 /lib/caldav/resources/calendar.js
parent0541668eaa804770d51e85037c21887c045642c7 (diff)
downloadjsCalDAV-a3f59b6298d87c3a72c167142546a816b3f2e73d.tar.gz
More complete parsing of calendar data
Diffstat (limited to 'lib/caldav/resources/calendar.js')
-rw-r--r--lib/caldav/resources/calendar.js13
1 files changed, 12 insertions, 1 deletions
diff --git a/lib/caldav/resources/calendar.js b/lib/caldav/resources/calendar.js
index a5a47c7..fd921cb 100644
--- a/lib/caldav/resources/calendar.js
+++ b/lib/caldav/resources/calendar.js
@@ -6,10 +6,15 @@
/**
* Represents a (Web/Cal)Dav resource type.
*
+ * @param {Caldav.Connection} connection connection details.
* @param {Object} options public options on prototype.
*/
- function Calendar(options) {
+ function Calendar(connection, options) {
+ if (typeof(options) === 'undefined') {
+ options = {};
+ }
+ this.updateFromServer(options);
}
Calendar.prototype = {
@@ -60,6 +65,12 @@
privilegeSet: null,
/**
+ * Updates calendar details from server.
+ */
+ updateFromServer: function() {
+ },
+
+ /**
* Creates a query request for this calendar resource.
*
* @return {CalDav.Request.CalendarQuery} query object.