diff options
author | James Lal <james@lightsofapollo.com> | 2012-07-07 09:00:49 -0700 |
---|---|---|
committer | James Lal <james@lightsofapollo.com> | 2012-07-07 09:00:49 -0700 |
commit | a3f59b6298d87c3a72c167142546a816b3f2e73d (patch) | |
tree | c7b1d138a2c766ca6fc50093a75e74743c16a2b8 /lib/caldav/resources | |
parent | 0541668eaa804770d51e85037c21887c045642c7 (diff) | |
download | jsCalDAV-a3f59b6298d87c3a72c167142546a816b3f2e73d.tar.gz |
More complete parsing of calendar data
Diffstat (limited to 'lib/caldav/resources')
-rw-r--r-- | lib/caldav/resources/calendar.js | 13 |
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. |