diff options
Diffstat (limited to 'lib/caldav/resources/calendar.js')
-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. |