rem: gAlarmWindow.addEventListener("load", addAlarm, false); 
add: calAlarmWindow.addEventListener("load", addAlarm, false); 
context:     onAlarm: function(event) {        if (!gAlarmWindow) {            var windowWatcher = Components.classes["@mozilla.org/embedcomp/window-watcher;1"].getService(CI.nsIWindowWatcher);            gAlarmWindow = windowWatcher.openWindow(null,                                                    "chrome://calendar/content/calendar-alarm-dialog.xul",                                                    "_blank",                                                    "chrome,dialog=yes,all",                                                    null);        }        if ("addAlarm" in gAlarmWindow) {            gAlarmWindow.addAlarm(event);        } else {            var addAlarm = function() {                gAlarmWindow.addAlarm(event);            }            gAlarmWindow.addEventListener("load", addAlarm, false);        }    }
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/a0edf2da6b950fd49915006a68dd726a747e3f2b/lightningAlarmMonitor.js/clean/calendar/lightning/components/lightningAlarmMonitor.js