rem: var numPosts = 5; var postBox = $('qa-qmo-forumposts'); qaTools.showHideLoadingMessage(postBox, true); var url = qaMain.urlbundle.getString("qa.extension.url.qmo.forum_topics"); var callback = function(feed) { var items = feed.items; qaTools.showHideLoadingMessage(postBox, false); if (items.length < numPosts) numPosts=items.length; for (var i=0; i<numPosts; i++) { var item = items.queryElementAt(i, Ci.nsIFeedEntry); if (item != null) { qmo.populateLinkBox(postBox, [{text : item.title.plainText(), url : item.link.resolve("")}], 64); } } }; qaTools.fetchFeed(url, callback); }, 
add: var numPosts = 5; var postBox = $('qa-qmo-forumposts'); qaTools.showHideLoadingMessage(postBox, true); var url = qaMain.urlbundle.getString("qa.extension.url.qmo.forum_topics"); var callback = function(feed) { var items = feed.items; qaTools.showHideLoadingMessage(postBox, false); if (items.length < numPosts) numPosts=items.length; for (var i=0; i<numPosts; i++) { var item = items.queryElementAt(i, Ci.nsIFeedEntry); if (item != null) { qmo.populateLinkBox(postBox, [{text : item.title.plainText(), url : item.link.resolve("")}], 64); } } }; qaTools.fetchFeed(url, callback); }, 
context: 	populateForumPosts : function() {		var numPosts = 5; // show top 5 topics		var postBox = $('qa-qmo-forumposts');		qaTools.showHideLoadingMessage(postBox, true);		var url = qaMain.urlbundle.getString("qa.extension.url.qmo.forum_topics");		var callback = function(feed) {			var items = feed.items;			qaTools.showHideLoadingMessage(postBox, false);			if (items.length < numPosts) 				numPosts=items.length;			for (var i=0; i<numPosts; i++) {				var item = items.queryElementAt(i, Ci.nsIFeedEntry);				if (item != null) {					qmo.populateLinkBox(postBox, 						[{text : item.title.plainText(), url : item.link.resolve("")}], 						64);				}			}		};		qaTools.fetchFeed(url, callback);	},
meta: 10520	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/10520/4af6f6b6437149955a8838293b59504d28ec897e/qmo.js/clean/testing/extensions/community/chrome/content/tabs/qmo.js