After updated DayPilot to last version (v8.2.2130) in our application, we just realized the we could not use DayPilot.Scheduler.options.update() anymore.
When using this method, all our events disappear.
I was debugging it and I think it could be a problem in DayPilot code.
That is because using , it calls postponedUpdate.request(options);
Inside this method, we call postponedUpdate.doit();
Inside doit() method, I found this code:
// partial update, only selected parameters are supported
// may need a different approach
if (options.events) {
calendar.events.list = options.events;
calendar._initialized && calendar._update({"eventsOnly": true});
}
If we have events object (that is the daypilot event object containing many methods and list array with all events)
We affect calendar.events.list = options.events, then it is not an array anymore, so there is no events reloaded in daypilot anymore.
Am I missing something or it is really an issue that should be fixed in DayPilot