rem: try { var s=new Smilies(); s.load(); } catch(e) { gRTSE.sendReport(e); } 
add: var s=Components.classes["@shawnwilsher.com/smilies;1"] .getService(Components.interfaces.nsISmilies); 
context: function displaySmilies()// EFFECTS: Generates preview of currently loaded smilies{	try {		var s=new Smilies();		s.load();	} catch(e) {		gRTSE.sendReport(e);	}	var ref=document.getElementById('smileyPreview');	// remove any existing children	while( ref.lastChild ) {		ref.removeChild(ref.lastChild);	}	// add new	var item,img,label,box;	for( var i in s.names ) {		item=document.createElement('richlistitem');		box=document.createElement('hbox');		img=document.createElement('image');		img.setAttribute('src',s.getPath(s.names[i]));		box.appendChild(img);		label=document.createElement('label');		label.setAttribute('value',s.names[i]);		box.appendChild(label);		item.appendChild(box);		ref.appendChild(item);	}}
meta: 760	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/760/9af8e0cfac4035d420df9ba8d92bbfdc5ad37f9f/options.js/buggy/chrome/content/options.js