lib/CalDAV/calendarQueryValidator.js
function (vObject, filter) {
        /**
         * Definition:
         *   <!ELEMENT filter (comp-filter)>
         */
        if (filter) {
            if (vObject.name == filter.name) {
                return this._validateFilterSet(vObject, filter["comp-filters"], this._validateCompFilter) &&
                       this._validateFilterSet(vObject, filter["prop-filters"], this._validatePropFilter);
            }
            else
                return false;
        }
        else
            return true;


    }
function (vObject, filter) {
        /**
         * Definition:
         *   <!ELEMENT filter (comp-filter)>
         */
        if (filter) {
            if (vObject.name == filter.name) {
                return this._validateFilterSet(vObject, filter["comp-filters"], this._validateCompFilter) &&
                       this._validateFilterSet(vObject, filter["prop-filters"], this._validatePropFilter);
            }
            else
                return false;
        }
        else
            return true;


    }
function ( vObject , filter ) { /**
         * Definition:
         *   <!ELEMENT filter (comp-filter)>
         */ if ( filter ) { if ( vObject . name == filter . name ) { return this . _validateFilterSet ( vObject , filter [ "comp-filters" ] , this . _validateCompFilter ) && this . _validateFilterSet ( vObject , filter [ "prop-filters" ] , this . _validatePropFilter ) ; } else return false ; } else return true ; }
Verify if a list of filters applies to the calendar data object

The list of filters must be formatted as parsed by \Sabre\CalDAV\CalendarQueryParser

@param {jsVObject_Component} vObject
@param {Array} filter
@return bool
Verify if a list of filters applies to the calendar data object