rem: function updateComponentType() {  return; 
add: function updateComponentType(aValue) { if ((aValue == "event" && isEvent(window.calendarItem)) || (aValue == "todo" && isToDo(window.calendarItem))) { return; } var oldItem = window.calendarItem.clone(); saveDialog(oldItem);  var newItem; if (aValue == "event") { newItem = createEvent(); oldItem.wrappedJSObject.cloneItemBaseInto(newItem.wrappedJSObject); newItem.startDate = oldItem.entryDate || now(); newItem.endDate = oldItem.dueDate || now(); } else { newItem = createToDo(); oldItem.wrappedJSObject.cloneItemBaseInto(newItem.wrappedJSObject); newItem.entryDate = oldItem.startDate; newItem.dueDate = oldItem.endDate; } window.calendarItem = newItem;  loadDialog(newItem);   const kDialogStylesheet = "chrome:  for each(var stylesheet in document.styleSheets) { if (stylesheet.href != kDialogStylesheet) { continue; } for (var i=0; i < stylesheet.cssRules.length; i++) { if (stylesheet.cssRules[i].selectorText == ".todo-only" || stylesheet.cssRules[i].selectorText == ".event-only") { stylesheet.deleteRule(i); break; } } break; }  updateStyle(); updateAccept(); updateDueDate(); updateEntryDate(); updateAllDay(); updateRecurrence();  window.sizeToContent(); 
context: function updateComponentType() {    //XXX We still can't properly convert from event <-> task via QI    return;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/be511370e88d3020f092b0598d29dd4fc1138f42/calendar-event-dialog.js/clean/calendar/base/content/calendar-event-dialog.js