add:   var privateEngineFlag = internetSearchDS.HasAssertion(idRes, typeRes, engineRes, true); if (privateEngineFlag == true) { var node = internetSearchDS.GetTarget(idRes, urlRes, true); if (node)	node = node.QueryInterface(Components.interfaces.nsIRDFLiteral); if (node) { if (node.Value) { id = node.Value; idRes = RDF.GetResource(id); if (!idRes)	return(false); } } } 
context: function AddEngine(){	var allenginesList = document.getElementById("allengines");	if (!allenginesList)	return(false);	var select_list = allenginesList.selectedItems;	if (!select_list)	return(false)	if (select_list.length < 1)	return(false);	// make sure we have at least one category to add engine into	var categoryPopup = document.getElementById( "categoryPopup" );	if (!categoryPopup)	return(false);	if (categoryPopup.childNodes.length < 1)	{		if (NewCategory() == false)	return(false);	}	var engineList = document.getElementById("engineList");	if (!engineList)	return(false);	var ref = engineList.getAttribute("ref");	if ((!ref) || (ref == ""))	return(false);	var categoryRes = RDF.GetResource(ref);	if (!categoryRes)	return(false);	RDFCUtils.MakeSeq(catDS, categoryRes);	RDFC.Init(catDS, categoryRes);	for (var x = 0; x < select_list.length; x++)	{		var id = select_list[x].getAttribute("id");		if ((!id) || (id == ""))	return(false);		var idRes = RDF.GetResource(id);		if (!idRes)	return(false);		var nodeIndex = RDFC.IndexOf(idRes);		if (nodeIndex < 1)		{			RDFC.AppendElement(idRes);		}	}	return(true);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/b4d53e437a4ec99c2eb193cfda3547c24ec1a27a/search-editor.js/buggy/suite/common/search/search-editor.js