rem: current_panels.database.AddDataSource(sidebarObj.datasource); 
context: function sidebar_customize_init(){  allPanelsObj.datasources = window.arguments[0];  allPanelsObj.resource    = window.arguments[1];  sidebarObj.datasource_uri     = window.arguments[2];  sidebarObj.resource           = window.arguments[3];  debug("Init: all panels datasources = " + allPanelsObj.datasources);  debug("Init: all panels resource    = " + allPanelsObj.resource);  debug("Init: sidebarObj.datasource_uri = " + sidebarObj.datasource_uri);  debug("Init: sidebarObj.resource       = " + sidebarObj.resource);  var all_panels   = document.getElementById('other-panels');  var current_panels = document.getElementById('current-panels');  debug("Adding observer to all panels database.");  all_panels.database.AddObserver(panels_observer);  allPanelsObj.datasources = allPanelsObj.datasources.replace(/^\s+/,'');  allPanelsObj.datasources = allPanelsObj.datasources.replace(/\s+$/,'');  allPanelsObj.datasources = allPanelsObj.datasources.split(/\s+/);  for (var ii = 0; ii < allPanelsObj.datasources.length; ii++) {    debug("Init: Adding "+allPanelsObj.datasources[ii]);    // This will load the datasource, if it isn't already.    var datasource = RDF.GetDataSource(allPanelsObj.datasources[ii]);    all_panels.database.AddDataSource(datasource);    current_panels.database.AddDataSource(datasource);  }  // Add the datasource for current list of panels. It selects panels out  // of the other datasources.  debug("Init: Adding current panels, "+sidebarObj.datasource_uri);  sidebarObj.datasource = RDF.GetDataSource(sidebarObj.datasource_uri);  current_panels.database.AddDataSource(sidebarObj.datasource);  // Root the customize dialog at the correct place.  debug("Init: reset all panels ref, "+allPanelsObj.resource);  all_panels.setAttribute('ref', allPanelsObj.resource);  debug("Init: reset current panels ref, "+sidebarObj.resource);  current_panels.setAttribute('ref', sidebarObj.resource);  save_initial_panels();  enable_buttons_for_current_panels();  var links =    all_panels.database.GetSources(RDF.GetResource(NC + "haslink"),                                   RDF.GetLiteral("true"), true);  while (links.hasMoreElements()) {    var folder =       links.getNext().QueryInterface(Components.interfaces.nsIRDFResource);    var folder_name = folder.Value;    debug("+++ fixing up remote container " + folder_name + "\n");    fixup_remote_container(folder_name);  }  sizeToContent();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/420108d297bda41aec3fb0246986def43d6a1d3b/customize.js/clean/suite/common/sidebar/customize.js