rem: var checkbox = engineBox.childNodes[x].firstChild.firstChild.firstChild; if (!checkbox) continue; var engineSRC = rdf.GetResource( checkbox.id, true ); var hasAssertion = localStore.HasAssertion( categorySRC, checkedProperty, engineSRC, true ); if (hasAssertion) checkbox.checked = true; 
add: var treeitemNode = engineBox.childNodes[x]; var engineURI = treeitemNode.getAttribute("id"); var engineSRC = rdf.GetResource( engineURI, true );  var checkboxNode = treeitemNode.firstChild.firstChild.firstChild; if (!checkboxNode) continue;  var hasAssertion = localStore.HasAssertion( categorySRC, checkedProperty, engineSRC, true ); if (hasAssertion) { checkboxNode.checked = true; } 
context: function loadEngines( aCategory ){    var rdf = Components.classes[RDFSERVICE_PROGID].getService(nsIRDFService);    if (rdf)    {        var localStore = rdf.GetDataSource("rdf:local-store");        if (localStore)        {            var engineBox = document.getElementById("engineKids");;            if( engineBox )            {                var numEngines = engineBox.childNodes.length;                var checkedProperty = rdf.GetResource("http://home.netscape.com/NC-rdf#checked", true);                var categorySRC = rdf.GetResource( aCategory, true );                for (var x = 0; x<numEngines; x++)                {                  var checkbox = engineBox.childNodes[x].firstChild.firstChild.firstChild;                  if (!checkbox) continue;                  var engineSRC = rdf.GetResource( checkbox.id, true );                  var hasAssertion = localStore.HasAssertion( categorySRC, checkedProperty, engineSRC, true );                  if (hasAssertion)                    checkbox.checked = true;                }            }        }    }}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/5aca66985447cf2b62cb3747ba84600f68c196c4/search-panel.js/buggy/suite/common/search/search-panel.js