Skip to content

Instantly share code, notes, and snippets.

@Gregg
Created December 8, 2011 15:26
Show Gist options
  • 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