MCPcopy Create free account
hub / github.com/DHTMLX/scheduler / _addRule

Function _addRule

codebase/sources/dhtmlxscheduler.js:18220–18227  ·  view source on GitHub ↗
(rrule, collection)

Source from the content-addressed store, hash-verified

18218 return RRuleSet2;
18219 }(RRule);
18220 function _addRule(rrule, collection) {
18221 if (!(rrule instanceof RRule)) {
18222 throw new TypeError(String(rrule) + " is not RRule instance");
18223 }
18224 if (!includes(collection.map(String), String(rrule))) {
18225 collection.push(rrule);
18226 }
18227 }
18228 function _addDate(date, collection) {
18229 if (!(date instanceof Date)) {
18230 throw new TypeError(String(date) + " is not Date instance");

Callers 1

dhtmlxscheduler.jsFile · 0.70

Calls 1

includesFunction · 0.70

Tested by

no test coverage detected