rem: sidebarObj.panels.initialized = false; var panels = document.getElementById("sidebar-panels"); 
add:    var panels = document.getElementById('sidebar-panels'); panels.database.AddDataSource(ds);  debug("Adding observer to database."); panels.database.AddObserver(panel_observer);   
context: function sidebar_open_default_panel(wait, tries) {  // check for making function reentrant  if (gBusyOpeningDefault)    return;  gBusyOpeningDefault = true;  var ds = RDF.GetDataSource(sidebarObj.datasource_uri);  var currentListRes = RDF.GetResource("urn:sidebar:current-panel-list");  var panelListRes = RDF.GetResource("http://home.netscape.com/NC-rdf#panel-list");  var container = ds.GetTarget(currentListRes, panelListRes, true);  if (container) {    sidebarObj.panels.initialized = false;    var panels = document.getElementById("sidebar-panels");    panels.builder.rebuild();  } else {    if (tries < 3) {      // No children yet, try again later      setTimeout('sidebar_open_default_panel(' + (wait*2) + ',' + (tries+1) + ')',wait);      gBusyOpeningDefault = false;      return;    } else {      sidebar_fixup_datasource();    }  }  sidebarObj.panels.refresh();  gBusyOpeningDefault = false;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/30cba0d5b4886557e7c7824a7f3d7a3629950904/sidebarOverlay.js/buggy/xpfe/components/sidebar/resources/sidebarOverlay.js