blob: b25a1c1e37dd27d6fd672baa0568010aad91ae42 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
(function(module, ns) {
var Propfind = ns.require('request/propfind');
/**
* Creates a calendar query request.
*
* Defaults to Depth of 1.
*
* @param {String} url location to make request.
* @param {Object} options options for calendar query.
*/
function CalendarQuery(url, options) {
Propfind.apply(this, arguments);
this.xhr.headers['Depth'] = this.depth || 1;
this.xhr.method = 'REPORT';
}
CalendarQuery.prototype = {
__proto__: Propfind.prototype
};
module.exports = CalendarQuery;
}.apply(
this,
(this.Webcals) ?
[Webcals('request/calendar_query'), Webcals] :
[module, require('../webcals')]
));
|