mrutid/httpNodeRelayer — Issue #1: REMOVE CALSSBACK-CLOSURE NESTING
Author: mrutid
Created: 2011-12-30 19:57:18+00:00
State: open

Right:

setTimeout(function() {
client.connect(afterConnect);
}, 1000);

function afterConnect() {
console.log('winning');
}

Wrong:

setTimeout(function() {
client.connect(function() {
console.log('losing');
});
}, 1000);