rem: if (!gAlarmWindow) { 
add: var calAlarmWindow = wmediator.getMostRecentWindow("calendarAlarmWindow"); if (!calAlarmWindow) { 
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: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/76b73fa44af5de58cf27e0a47e89ffe3cf341f06/lightningAlarmMonitor.js/clean/calendar/lightning/components/lightningAlarmMonitor.js