Skip to content

Instantly share code, notes, and snippets.

@Gregg
Created December 8, 2011 15:26
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 Gregg/1447292 to your computer and use it in GitHub Desktop.
Save Gregg/1447292 to your computer and use it in GitHub Desktop.
Sending two functions as parameters
SendTwo(
->
alert 'thing 1'
->
alert 'thing 2'
)
SendTwo(function() {
alert('thing 1');
}, function() {
alert('thing 2');
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment