rem: var flushableStore = localStore.QueryInterface(Components.interfaces.nsIRDFRemoteDataSource); 
add: var flushableStore = localStore.QueryInterface(nsIRDFRemoteDataSource); 
context: function saveEngines(){	var categoryList = document.getElementById("categoryList");	var category = categoryList.selectedItem.getAttribute("id");	if( category )	{		category = "NC:SearchCategory?category=" + category;	}	else	{		category = "NC:SearchEngineRoot";	}	var rdf = Components.classes["component://netscape/rdf/rdf-service"].getService();	if (rdf)   rdf = rdf.QueryInterface(Components.interfaces.nsIRDFService);	if (rdf)	{		var localStore = rdf.GetDataSource("rdf:local-store");		if( !localStore )	return(false);   	var engineBox = document.getElementById("searchengines");    if( !engineBox )      return false;    var checkedProperty = rdf.GetResource( "http://home.netscape.com/NC-rdf#checked", true );    var categorySRC = rdf.GetResource( category, true );    for (var x = 0; x < engineBox.childNodes.length; x++)    {      var checkbox = engineBox.childNodes[x];      if( !checkbox )      	continue;      var engineURI = checkbox.getAttribute("id");      var engineSRC = rdf.GetResource(engineURI, true);      if( checkbox.checked == true || checkbox.checked == "true")        localStore.Assert( categorySRC, checkedProperty, engineSRC, true );      else        localStore.Unassert( categorySRC, checkedProperty, engineSRC, true );    }	// save changes; flush out the localstore	try	{		var flushableStore = localStore.QueryInterface(Components.interfaces.nsIRDFRemoteDataSource);		if (flushableStore)	flushableStore.Flush();	}	catch(ex)	{	}  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/ba7cb60ef79f944da51c6fa6e8ce1fb183696c74/search-panel.js/buggy/suite/common/search/search-panel.js