Repeated scheduler.templates.event_class

Hi,

I recently detected that in my timeline scheduler all the code inside the scheduler.templates.event_class is executed two times. I’ve a demo here: dimas.cat/demo/demo2.html

As you can see inside the function css_events():

[code]
function css_events() {
scheduler.templates.event_class = function (start, end, event) {
var css_classes = new Array();
if (event.id == 1261150586) console.log(event.id);

   residents = ["13","16","38"];
   css_classes.push("ev_altres");
   if (event.teContracte === "0") css_classes.push("ev_contracte");
   if (event.readonly === "1") css_classes.push("ev_readonly");
   css_classes.push("tier1");

   return css_classes.join(" ");

};
}[/code]

The console.log event ID is printed two times. Is it normal?

Hello,
seems like during initialization something triggers repainting one extra time, and this repaint is not captured by delay_render config.
This may happen if you use different methods for refreshing, i.e. setCurrentView and updateCollection. However, single repaint during the app start shouldn’t cause any performance problems