DHTMLXCalendar unload() method thows an error in IE


We’re using DHTMLCalendar
Met an issue in IE8(Object does not support this method). pointing to line

delete this.i[a]._dhtmlxcalendar_uid;

We create calendar this way:

gv_calendar = new dhtmlXCalendarObject(["date_input_id"]); gv_calendar.hideTime(); gv_calendar.setDateFormat("%Y-%m-%d");

Then on some event we destroy calendar this way:


This works in all browsers but IE.

If to comment this line - error disappears and unload method is working OK everywhere.
Hopefully this helps to anyone.

Best regards,

What dhtmlx version do you have?