rem: alert(err); 
add: dump(err); 
context: 	loadJsonMenu : function(url, menulist, nameMethod, valueMethod, callback) {		var d = loadJSONDoc(url);		d.addErrback(function (err) {         if (err instanceof CancelledError) {           return;         }        alert(err);      });	  d.addCallback(function(obj) {	      if (obj instanceof Array) {	          for (var i=0; i<obj.length; i++) {	              var item = obj[i];	              if (! item) { continue; }	              var newitem = menulist.appendItem(item[nameMethod], 	              									item[valueMethod]);	          }	      } else {	          var newitem = menulist.appendItem(obj[nameMethod], obj[valueMethod]);	      }	      // stash the JSON object in the userData attribute for 	      // later use (e.g. when filtering the list).	      newitem.userData = item;	      if (callback) {	      	callback();	      }	  });	},
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/8395/a3a9a2c311afc9d76e4e6bfc036e5897fa988bc1/common.js/buggy/testing/extensions/community/chrome/content/common.js