rem: dump(count + "\n"); 
context: function Init(sidebardb, sidebar_resource){ dump("here we go \n");  // Initialize the Sidebar  // Install all the datasources named in the Flash Registry into  // the tree control. Datasources are listed as members of the  // NC:FlashDataSources sequence, and are loaded in the order that  // they appear in that sequence.  var registry = RDF.GetDataSource(sidebardb);  // Create a 'container' wrapper around the sidebar_resources  // resource so we can use some utility routines that make access a  // bit easier.  var sb_datasource = Components.classes['component://netscape/rdf/container'].createInstance();  sb_datasource = sb_datasource.QueryInterface(Components.interfaces.nsIRDFContainer);  sb_datasource.Init(registry, RDF.GetResource(sidebar_resource));    var sideoption = document.getElementById('selectList');  // Now enumerate all of the flash datasources.  dump(sb_datasource.GetElements() + '\n');  var enumerator = sb_datasource.GetElements();  var count = 0;  var countTotal = sb_datasource.GetCount();  dump("Start Get:" + countTotal + "\n");  while (enumerator.HasMoreElements()) {    count = ++count;	dump(count + "\n");    var service = enumerator.GetNext();    service = service.QueryInterface(Components.interfaces.nsIRDFResource);    var new_option = createOption(registry, service);    if (new_option) {      sideoption.appendChild(new_option);    }  }}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/1c5128ed665789d335de38cc5f8c8f55e2dbef85/dialogSidebar.js/clean/rdf/resources/dialogSidebar.js