d.addBoth(function (res) { d.deferred = null; return res; }); d.addCallback(callback); d.addErrback(function (err) { if (err instanceof CancelledError) { return; 
d.addBoth(function (res) { d.deferred = null; return res; }); d.addCallback(callback); d.addErrback(function (err) { if (err instanceof CancelledError) { return; 
    getLitmusJson : function(ID, callback, prefix) {        var url = litmus.baseURL+'json.cgi?' + prefix + ID;        var d = loadJSONDoc(url);		d.addBoth(function (res) { 			d.deferred = null;  			return res; 		});		d.addCallback(callback);		d.addErrback(function (err) {             if (err instanceof CancelledError) {                 return;             }            alert(err);        });    },
5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5459/a3a9a2c311afc9d76e4e6bfc036e5897fa988bc1/litmus.js/buggy/testing/extensions/community/chrome/content/litmus.js