openEventDialog(todo, calendar, "new", onNewItem); 
openEventDialog(todo, calendar, "new", onNewItem, null); 
function createTodoWithDialog(calendar, dueDate, summary, todo){    const kDefaultTimezone = calendarDefaultTimezone();    var onNewItem = function(item, calendar, originalItem) {        doTransaction('add', item, calendar, null, null);    }    if (todo) {        openEventDialog(todo, calendar, "new", onNewItem);        return;    }    todo = createTodo();    if (calendar) {        todo.calendar = calendar;    } else if ("getSelectedCalendarOrNull" in window) {        // Sunbird specific code        todo.calendar = getSelectedCalendarOrNull();    }    if (summary)        todo.title = summary;    if (dueDate)        todo.dueDate = dueDate;    var onNewItem = function(item, calendar, originalItem) {        calendar.addItem(item, null);    }    setDefaultAlarmValues(todo);    openEventDialog(todo, calendar, "new", onNewItem);}
5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5872/8a8fb1e50f1a74dbb1713b031761c84e92fa5b69/calendar-item-editing.js/buggy/calendar/base/content/calendar-item-editing.js