rem: dump('removing panel ' + ii + '\n'); 
add: debug('removing panel ' + ii); 
context: function Save(){  // Iterate through the 'selected-panels' tree to collect the panels  // that the user has chosen. We need to do this _before_ we remove  // the panels from the datasource, because the act of removing them  // from the datasource will change the tree!  var panels = new Array();  var root = document.getElementById('selected-panels-root');  for (var node = root.firstChild; node != null; node = node.nextSibling) {    panels[panels.length] = node.getAttribute('id');  }  // Now remove all the current panels from the datasource.  // Create a "container" wrapper around the "NC:BrowserSidebarRoot"  // object. This makes it easier to manipulate the RDF:Seq correctly.  var container = Components.classes["component://netscape/rdf/container"].createInstance();  container = container.QueryInterface(Components.interfaces.nsIRDFContainer);  container.Init(sidebar.datasource, RDF.GetResource(sidebar.resource));  for (var ii = container.GetCount(); ii >= 1; --ii) {    dump('removing panel ' + ii + '\n');    container.RemoveElementAt(ii, true);  }  // Now iterate through the panels, and re-add them to the datasource  for (var ii = 0; ii < panels.length; ++ii) {    debug('adding ' + panels[ii] + '\n');    container.AppendElement(RDF.GetResource(panels[ii]));  }  // Write the modified panels out.  sidebar.datasource.QueryInterface(Components.interfaces.nsIRDFRemoteDataSource).Flush();  window.close();}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/1a32cc1c526c53fd9e341d35b5639757bb33402a/customize.js/clean/suite/common/sidebar/customize.js