rem: { try { var dataSource = top.rdf.GetDataSource("rdf:addressdirectory"); dataSource.RemoveObserver (addressBookObserver); } catch (ex) { dump(ex + "\n"); dump("Error removing from RDF datasource\n"); } 
add: { var addrbookSession = Components.classes["@mozilla.org/addressbook/services/session;1"].getService().QueryInterface(Components.interfaces.nsIAddrBookSession); addrbookSession.removeAddressBookListener(gAddressBookAbListener);  RemovePrefObservers(); CloseAbView(); 
context: function OnUnloadAddressBook(){	try	{		var dataSource = top.rdf.GetDataSource("rdf:addressdirectory");		dataSource.RemoveObserver (addressBookObserver);	}	catch (ex)	{		dump(ex + "\n");		dump("Error removing from RDF datasource\n");	}}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/404e12e0541a3ffd54ae714e9a3401c380718f10/addressbook.js/clean/mailnews/addrbook/resources/content/addressbook.js