rem: for each (kid in box.childNodes) { if (!kid || !kid.item) { continue; } onDismissWidget(kid); 
add: for (var i = box.childNodes.length-1; i >= 0; i--) { onDismissWidget(box.childNodes[i]); 
context: function onDismissAll(){  var now = Components.classes["@mozilla.org/calendar/datetime;1"]                      .createInstance(Components.interfaces.calIDateTime);  now.jsDate = new Date();  now = now.getInTimezone("UTC");  var box = document.getElementById("alarmlist");  for each (kid in box.childNodes) {    if (!kid || !kid.item) {        continue;    }    onDismissWidget(kid);  }  return true;}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/cc0559016e1c97fd76385699166afafd9afa0b69/calendar-alarm-dialog.js/buggy/calendar/base/content/calendar-alarm-dialog.js