rem: tree = helpIndexPanel; sourceDS = tree.database;  if (!sourceDS) sourceDS = loadCompositeDS(tree.datasources);  
add: sourceDS = helpIndexPanel.database; 
context: function doFind() {    if (document.getElementById("help-search-sidebar").hidden)      showSearchSidebar();    var searchTree = document.getElementById("help-search-tree");    var findText = document.getElementById("findText");    // clear any previous results.    clearDatabases(searchTree.database);    // if the search string is empty or contains only whitespace, purge the results tree and return    RE = findText.value.match(/\S+/g);    if (!RE) {      searchTree.builder.rebuild();      hideSearchSidebar();      return;    }    // compile the search string, which has already been split up above, into regexps    for (var i=0; i < RE.length; ++i) {      RE[i] = new RegExp(RE[i], "i");    }    emptySearch = true;    // search TOC    var resultsDS = Components.classes["@mozilla.org/rdf/datasource;1?name=in-memory-datasource"]        .createInstance(Components.interfaces.nsIRDFDataSource);    var tree = helpTocPanel;    var sourceDS = tree.database;    doFindOnDatasource(resultsDS, sourceDS, RDF_ROOT, 0);    // search glossary.    tree = helpGlossaryPanel;    sourceDS = tree.database;    // If the glossary has never been displayed this will be null (sigh!).    if (!sourceDS)      sourceDS = loadCompositeDS(tree.datasources);    doFindOnDatasource(resultsDS, sourceDS, RDF_ROOT, 0);    // search index    tree = helpIndexPanel;    sourceDS = tree.database;    //If the index has never been displayed this will be null    if (!sourceDS)      sourceDS = loadCompositeDS(tree.datasources);    doFindOnDatasource(resultsDS, sourceDS, RDF_ROOT, 0);    // search additional search datasources    if (searchDatasources != "rdf:null") {      if (!searchDS) searchDS = loadCompositeDS(searchDatasources);      doFindOnDatasource(resultsDS, searchDS, RDF_ROOT, 0);    }    if (emptySearch)        assertSearchEmpty(resultsDS);    // Add the datasource to the search tree    searchTree.database.AddDataSource(resultsDS);    searchTree.builder.rebuild();}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/80c75a4ba0fb2cddfbfb96ef3ca370e6a36d8fac/help.js/clean/toolkit/components/help/content/help.js