I want to merge my own project, which use dhtmlxScheduler, with
dhtmlscheduler_reccuring.js
.
I normally join *.js and *.css files, as it is written in manual for recurring events, next I modified my database, then I started my project. Here begins…
I got message from my Google Chrome Console:
What is in 3004 line? I checked it. There is defined scheduler.get_visible_events() function. This function is running frequently, and finish my stack for current tab.
I was suprised, when I look to code, because, what I saw there? (I’M NOD MODIFIED THIS FILE - EVER):
scheduler.get_visible_events_rec = scheduler.get_visible_events;
scheduler.get_visible_events = function() {
for (var a = 0; a < this._rec_temp.length; a++) delete this._events[this._rec_temp[a].id];
this._rec_temp = [];
for (var b = this.get_visible_events_rec(),c = [],a = 0; a < b.length; a++) b[a].rec_type ? b[a].rec_pattern != "none" && this.repeat_date(b[a], c) : c.push(b[a]);
return c
};
Or I’m not much experienced wed developer, or I’m just stupid, but it has no rights to get work correctly.
scheduler.get_visible_events launching scheduler.get_visible_events_rec, which is reference to scheduler.get_visible_events, so, we have infinite loop. Problem goes away, when I’ll turn off recurring events, but I want to use this. What is wrong? What could be?