"this._els is undefined" on markTimespan (Scheduler 4.3.1)

Hi,

I updated my DHTMLX Scheduler component to the last 4.3.1 (standard version) and what was working in the latest version now fails.

The error is:

TypeError: this._els is undefined1 dhtmlxscheduler_limit.js:35:87

The code that generates the error is:

scheduler.markTimespan({ days: new Date(2015,5,10), zones: "fullday", css: "highlight_festiu" });

The scheduler is initated like this:

[code]scheduler.config.multi_day = true;
scheduler.config.xml_date=’%Y-%m-%d %H:%i’;
scheduler.config.default_date = “%d %F %Y”;
scheduler.config.show_loading = true;
scheduler.config.start_on_monday = true;
scheduler.config.active_link_view = ‘day’;
scheduler.config.mark_now = false;
scheduler.config.readonly = true;
scheduler.config.all_timed = “short”;

scheduler.init(‘elmeucalendari_div’, new Date(),‘month’);
scheduler.setLoadMode(‘year’);
scheduler.load(“elmeucalendari/get_events”);[/code]

Help please.

Hello.

Are you trying to use markTimespan before scheduler init? You shouldn’t use it before init.

Of course not, this is not the order of execution.

Maybe you are using extesion from different version?
Because it seems it works fine in 4.3.1.

I downloaded again the dhtmlxScheduler_v4.3.1_commercial.zip and the codebase\ext\dhtmlxscheduler_limit.js are identical than mine.

Any official feedback?