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

Function handleOccurrence

codebase/sources/dhtmlxscheduler.es.js:18922–18942  ·  view source on GitHub ↗
(occurrence2)

Source from the content-addressed store, hash-verified

18920 tempEndDate = occurrence.end_date;
18921 }
18922 const handleOccurrence = function(occurrence2) {
18923 let tempEvent2 = { ...event2, ...scheduler2.getEvent("$dnd_recurring_placeholder") };
18924 if (tempEndDate && tempStartDate) {
18925 tempEvent2.start_date = tempStartDate;
18926 tempEvent2.end_date = tempEndDate;
18927 tempEvent2._beforeEventChangedFlag = occurrence2._beforeEventChangedFlag;
18928 tempEvent2._ocr = true;
18929 }
18930 if (!scheduler2.config.collision_limit || scheduler2.checkCollision(tempEvent2)) {
18931 for (const i in scheduler2._events) {
18932 let tev = scheduler2._events[i];
18933 if (i === "$dnd_recurring_placeholder") {
18934 continue;
18935 }
18936 if (tev.id == tempEvent2.id) {
18937 scheduler2._events[i] = { ...tempEvent2 };
18938 scheduler2.callEvent("onEventChanged", [scheduler2._events[i].id, scheduler2._events[i]]);
18939 }
18940 }
18941 }
18942 };
18943 const handleFollowing = function(occurrence2) {
18944 let initialOccurrence = scheduler2._lame_clone(occurrence2);
18945 if (tempEndDate && tempStartDate) {

Callers 1

recurringFunction · 0.70

Calls 3

getEventMethod · 0.65
checkCollisionMethod · 0.65
callEventMethod · 0.65

Tested by

no test coverage detected