rem: var alarmWidget = event.target; var now = Components.classes["@mozilla.org/calendar/datetime;1"] .createInstance(Components.interfaces.calIDateTime); now.jsDate = new Date(); now = now.getInTimezone("UTC"); var item = alarmWidget.item.clone(); item.alarmLastAck = now; item.calendar.modifyItem(item, alarmWidget.item, null);  var parent = alarmWidget.parentNode; parent.removeChild(alarmWidget);  if (!parent.hasChildNodes()) {  window.close(); }  
add: onDismissWidget(event.target); 
context: function onDismissAlarm(event){  var alarmWidget = event.target;  var now = Components.classes["@mozilla.org/calendar/datetime;1"]                      .createInstance(Components.interfaces.calIDateTime);  now.jsDate = new Date();  now = now.getInTimezone("UTC");  var item = alarmWidget.item.clone();  item.alarmLastAck = now;  item.calendar.modifyItem(item, alarmWidget.item, null);  var parent = alarmWidget.parentNode;  parent.removeChild(alarmWidget);  if (!parent.hasChildNodes()) {    // If this was the last alarm, close the window.    window.close();  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/7f4c0bd7828bdc701a79838ace6546bbe8786364/calendar-alarm-dialog.js/clean/calendar/base/content/calendar-alarm-dialog.js