context: function sidebar_overlay_init() {  sidebarObj.panels = new sbPanelList('sidebar-panels');  sidebarObj.datasource_uri = get_sidebar_datasource_uri();  sidebarObj.resource = 'urn:sidebar:current-panel-list';    sidebarObj.master_datasources = "";  sidebarObj.master_datasources = get_remote_datasource_url();  sidebarObj.master_datasources += " chrome://communicator/content/sidebar/local-panels.rdf";  sidebarObj.master_resource = 'urn:sidebar:master-panel-list';  sidebarObj.component = document.firstChild.getAttribute('windowtype');  debug("sidebarObj.component is " + sidebarObj.component);  // Initialize the display  var sidebar_element = document.getElementById('sidebar-box');  var sidebar_menuitem = document.getElementById('sidebar-menu');  if (sidebar_is_hidden()) {    if (sidebar_menuitem) {      sidebar_menuitem.setAttribute('checked', 'false');    }  } else {    if (sidebar_menuitem) {      sidebar_menuitem.setAttribute('checked', 'true');    }        if (sidebarObj.never_built) {      sidebarObj.never_built = false;      debug("sidebar = " + sidebarObj);      debug("sidebarObj.resource = " + sidebarObj.resource);      debug("sidebarObj.datasource_uri = " + sidebarObj.datasource_uri);      // Show the header for the panels area. Use a splitter if there      // is stuff over the panels area.      var sidebar_panels_splitter = document.getElementById('sidebar-panels-splitter');      if (sidebar_element.firstChild != sidebar_panels_splitter) {        debug("Showing the panels splitter");        sidebar_panels_splitter.removeAttribute('hidden');      }            // Add the user's current panel choices to the template builder,      // which will aggregate it with the other datasources that describe      // the individual panel's title, customize URL, and content URL.      var panels = document.getElementById('sidebar-panels');      panels.database.AddDataSource(RDF.GetDataSource(sidebarObj.datasource_uri));            debug("Adding observer to database.");      panels.database.AddObserver(panel_observer);      // XXX This is a hack to force re-display      panels.setAttribute('ref', sidebarObj.resource);    }    if (sidebar_is_collapsed()) {      sidebarObj.collapsed = true;    } else {      sidebarObj.collapsed = false;    }    sidebar_open_default_panel(100, 0);  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/0b2dd2b2d2fd037df917e07645fa019a963332a5/sidebarOverlay.js/buggy/xpfe/components/sidebar/resources/sidebarOverlay.js