rem: if (value.compare(item.endDate) != 0) { if (item.isAllDay) { value.isDate = true; value.day += 1; value.normalize(); } 
add: if (value.isDate && !item.endDate.isDate || !value.isDate && item.endDate.isDate || value.compare(item.endDate) != 0) 
context: function setItemProperty(item, propertyName, value){    switch(propertyName) {    case "isAllDay":        if (value != item.isAllDay)            item.isAllDay = value;        break;    case "startDate":        if (value.compare(item.startDate) != 0) {            if (item.isAllDay)                value.isDate = true;            item.startDate = value;        }        break;    case "endDate":        if (value.compare(item.endDate) != 0) {            if (item.isAllDay) {                value.isDate = true;                value.day += 1;                value.normalize();            }            item.endDate = value;        }        break;    case "dueDate":        if (value == item.dueDate)            break;        if ((value && !item.dueDate) ||            (!value && item.dueDate) ||            (value.compare(item.dueDate) != 0))            item.dueDate = value;        break;    case "percentComplete":        var percent = (value) ? 100 : 0;        if (percent != item.percentComplete)            item.percentComplete = percent;        break;    case "title":        if (value != item.title)            item.title = value;        break;    case "alarmTime":        if ((value && !item.alarmTime) ||            (!value && item.alarmTime) ||            (value.compare(item.alarmTime) != 0))            item.alarmTime = value;        break;    default:        if (!value || value == "")            item.deleteProperty(propertyName);        else if (item.getProperty(propertyName) != value)            item.setProperty(propertyName, value);        break;    }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/02bf3d9bbb2918a6880485c73567ba726e6698ea/calendar-event-dialog.js/clean/calendar/base/content/calendar-event-dialog.js