rem:  if (tree.database) { loadDatabases(tree.database, datasources); tree.builder.rebuild(); }  
context: function loadHelpRDF() {  if (!helpFileDS) {    try {      helpFileDS = RDF.GetDataSourceBlocking(helpFileURI);    }    catch (e if (e.result == NSRESULT_RDF_SYNTAX_ERROR)) {      log("Help file: " + helpFileURI + " contains a syntax error.");    }    catch (e) {      log("Help file: " + helpFileURI + " was not found.");    }    try {      helpWindow.setAttribute("title", getAttribute(helpFileDS, RDF_ROOT, NC_TITLE, ""));      helpBaseURI = getAttribute(helpFileDS, RDF_ROOT, NC_BASE, helpBaseURI);      defaultTopic = getAttribute(helpFileDS, RDF_ROOT, NC_DEFAULTTOPIC, "welcome");      var panelDefs = helpFileDS.GetTarget(RDF_ROOT, NC_PANELLIST, true);            RDFContainer.Init(helpFileDS, panelDefs);      var iterator = RDFContainer.GetElements();        while (iterator.hasMoreElements()) {        var panelDef = iterator.getNext();        var panelID = getAttribute(helpFileDS, panelDef, NC_PANELID, null);                var datasources = getAttribute(helpFileDS, panelDef, NC_DATASOURCES, "rdf:none");        datasources = normalizeLinks(helpBaseURI, datasources);        // cache additional datsources to augment search datasources.        if (panelID == "search") {	       emptySearchText = getAttribute(helpFileDS, panelDef, NC_EMPTY_SEARCH_TEXT, null) || "No search items found." ;        	       emptySearchLink = getAttribute(helpFileDS, panelDef, NC_EMPTY_SEARCH_LINK, null) || "about:blank";                  searchDatasources = datasources;          datasources = "rdf:null"; // but don't try to display them yet!        }          // cache toc datasources for use by ID lookup.        var tree = document.getElementById("help-" + panelID + "-panel");        tree.setAttribute("datasources", datasources);        //if (panelID == "toc") {          if (tree.database) {            loadDatabases(tree.database, datasources);            tree.builder.rebuild();          }        //}      }      }    catch (e) {      log(e + "");          }  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/28f77c0634275146d1523987886b66d26deb7694/help.js/buggy/extensions/help/resources/content/help.js