Created
June 19, 2012 00:22
-
-
Save chapel/2951616 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// nested | |
db.call(query, function (err, value) { | |
// do stuff here | |
nestedFn('foo', function (err, something) { | |
// do more stuff here | |
}) | |
}) | |
// below | |
db.call(query, gotValue) | |
function gotValue(err, value) { | |
// do stuff here | |
nestedFn('foo', gotSomething) | |
} | |
function gotSomething(err, something) { | |
// do more stuff here | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment