rem: if ( resultsTree.selectedItems && resultsTree.selectedItems.length ) { for ( item = 0; item < resultsTree.selectedItems.length; item++ ) { uri = resultsTree.selectedItems[item].getAttribute('id'); cardResource = rdf.GetResource(uri); card = cardResource.QueryInterface(Components.interfaces.nsIAbCard); if ( selectedAddresses ) selectedAddresses += ","; selectedAddresses += "\"" + card.displayName + "\" <" + card.primaryEmail + ">"; } } return selectedAddresses; 
add: if (resultsTree.selectedItems && resultsTree.selectedItems.length) { for (item = 0; item < resultsTree.selectedItems.length; item++) { uri = resultsTree.selectedItems[item].getAttribute("id"); cardResource = rdf.GetResource(uri); card = cardResource.QueryInterface(Components.interfaces.nsIAbCard); if (selectedAddresses) selectedAddresses += ","; selectedAddresses += "\"" + card.displayName + "\" <" + card.primaryEmail + ">"; } } return selectedAddresses; 
context: function GetSelectedAddresses(){	var item, uri, rdf, cardResource, card;	var selectedAddresses = "";		rdf = Components.classes["@mozilla.org/rdf/rdf-service;1"].getService();	rdf = rdf.QueryInterface(Components.interfaces.nsIRDFService);	if ( resultsTree.selectedItems && resultsTree.selectedItems.length )	{		for ( item = 0; item < resultsTree.selectedItems.length; item++ )		{			uri = resultsTree.selectedItems[item].getAttribute('id');			cardResource = rdf.GetResource(uri);			card = cardResource.QueryInterface(Components.interfaces.nsIAbCard);			if ( selectedAddresses )				selectedAddresses += ",";			selectedAddresses += "\"" + card.displayName + "\" <" + card.primaryEmail + ">";		}	}	return selectedAddresses;	}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/0bae2ed72e9748283256fed72e6330994a6cb0fd/abCommon.js/buggy/mailnews/addrbook/resources/content/abCommon.js