Skip to content

Instantly share code, notes, and snippets.

@qrush
Forked from michealbenedict/C.js
Created December 20, 2012 15:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save qrush/4345987 to your computer and use it in GitHub Desktop.
Save qrush/4345987 to your computer and use it in GitHub Desktop.
someFunction
args: [1, 2, 3]
success: () ->
console.log "Success!"
failure: () ->
console.log "Failure!"
someFunction({
args: [1, 2, 3],
success: function() {
return console.log("Success!");
},
failure: function() {
return console.log("Failure!");
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment