rem: return self.callRemote('getChildCount').addCallback(function(count) { var d = new MochiKit.Async.Deferred(); d.addCallback(function() { self.node.style.border = 'thin solid green'; }); var cb = deferredList(d, count); assertEquals(self.childWidgets.length, count); for (var i = 0; i < self.childWidgets.length; i++) { var childWidget = self.childWidgets[i]; childWidget.checkParent(self); childWidget.test().addCallback(cb).addErrback(function(err) { d.errback(err); }); } return d; 
add: res.addCallback(function(result) { Divmod.log('test', 'Success!'); 
context:         return self.callRemote('getChildCount').addCallback(function(count) {            var d = new MochiKit.Async.Deferred();            d.addCallback(function() { self.node.style.border = 'thin solid green'; });            var cb = deferredList(d, count);            assertEquals(self.childWidgets.length, count);            for (var i = 0; i < self.childWidgets.length; i++) {                var childWidget = self.childWidgets[i];                childWidget.checkParent(self);                childWidget.test().addCallback(cb).addErrback(function(err) { d.errback(err); });            }            return d;        });
meta: 1565	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1565/f0728a2fda06afa35e19f889d078ab04458c095f/athenatest.js/buggy/examples/athenademo/athenatest.js