rem: initDialog = function() {   gPreviousLocation = gToolbox.getAttribute("location"); document.getElementById("loction-list").value = gPreviousLocation;       var selectorList = document.getElementById("selector-list"); selectorList.value = window.arguments[3]; if (selectorList.selectedItem.value != window.arguments[3]) { document.getElementById("selector-container").collapsed = true; }   gInitDialog(); 
add: initDialog = function() {      if (gIsMainApplicationContext) {    gPreviousLocation = gToolbox.getAttribute("location"); document.getElementById("location-list").value = gPreviousLocation;       var selectorList = document.getElementById("selector-list"); selectorList.value = window.arguments[3]; if (selectorList.selectedItem.value != window.arguments[3]) { document.getElementById("selector-container").collapsed = true; } }   gInitDialog(); 
context: initDialog = function(){  // remember initialo toolbar location and set the  // menulist accordingly. this applies to the mode toolbar only.  gPreviousLocation = gToolbox.getAttribute("location");  document.getElementById("loction-list").value = gPreviousLocation;    // set the toolbar selection according to the current mode.  // this list allows to hop from one toolbar to another without  // leaving the customize dialog. if this feature is to be used outside  // of mail/news main application window, we detect this case and disable  // all relevant controls and stuff.  var selectorList = document.getElementById("selector-list");  selectorList.value = window.arguments[3];  if (selectorList.selectedItem.value != window.arguments[3]) {      document.getElementById("selector-container").collapsed = true;  }    // now call the original initDialog() function  gInitDialog();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9421/49d99658257e01d5bb14d94382a0b2604eb4fa45/customize-toolbar.js/buggy/calendar/lightning/content/customize-toolbar.js