add:   var prefService = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefService); var rootPrefBranch = prefService.getBranch(""); ltnPrefObserver.rootPrefBranch = rootPrefBranch; var pb2 = rootPrefBranch.QueryInterface( Components.interfaces.nsIPrefBranch2); pb2.addObserver("calendar.", ltnPrefObserver, false); ltnPrefObserver.observe(null, null, "");   document.getElementById("messengerWindow") .addEventListener("unload", ltnFinish, false);    try { var sHour = rootPrefBranch.getIntPref("calendar.event.defaultstarthour"); var eHour = rootPrefBranch.getIntPref("calendar.event.defaultendhour"); document.getElementById("calendar-multiday-view") .setStartEndMinutes(sHour*60, eHour*60); } catch(ex) {}  return; 
context: function ltnOnLoad(event){    gMiniMonthLoading = true;    var today = new Date();    var nextmo = nextMonth(today);    document.getElementById("ltnMinimonth").value = today;    gMiniMonthLoading = false;    // nuke the onload, or we get called every time there's    // any load that occurs    document.removeEventListener("load", ltnOnLoad, true);}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/d58fc653d6bfa200c4e59e291f12a1374ccbd090/messenger-overlay-sidebar.js/buggy/calendar/lightning/content/messenger-overlay-sidebar.js