rem: var box = $('qa-qmo-latest'); var url = qaMain.urlbundle.getString("qa.extension.url.qmo.news"); qaTools.showHideLoadingMessage(box, true); var callback = function(feed) { var items = feed.items; var item = items.queryElementAt(0, Ci.nsIFeedEntry); qaTools.showHideLoadingMessage(box, false); if (item != null) { var content = item.summary; var fragment = content.createDocumentFragment(box);  box.appendChild(fragment); } qaTools.assignLinkHandlers(box); } qaTools.fetchFeed(url, callback); }, 
add: var box = $('qa-qmo-latest'); var url = qaMain.urlbundle.getString("qa.extension.url.qmo.news"); qaTools.showHideLoadingMessage(box, true); var callback = function(feed) { var items = feed.items; var item = items.queryElementAt(0, Ci.nsIFeedEntry); qaTools.showHideLoadingMessage(box, false); if (item != null) { var content = item.summary; var fragment = content.createDocumentFragment(box);  box.appendChild(fragment); } qaTools.assignLinkHandlers(box); } qaTools.fetchFeed(url, callback); }, 
context: 	populateQMONews : function() {		var box = $('qa-qmo-latest');		var url = qaMain.urlbundle.getString("qa.extension.url.qmo.news");		qaTools.showHideLoadingMessage(box, true);		var callback = function(feed) {			var items = feed.items;			var item = items.queryElementAt(0, Ci.nsIFeedEntry);			qaTools.showHideLoadingMessage(box, false);			if (item != null) { // just grab the first item				var content = item.summary;				var fragment = content.createDocumentFragment(box);								box.appendChild(fragment);			}			qaTools.assignLinkHandlers(box);		}		qaTools.fetchFeed(url, callback);	},
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9421/838a3f38df6e9bd6fd899d9909b263e01aed1e26/qmo.js/buggy/testing/extensions/community/chrome/content/tabs/qmo.js