Skip to content

Instantly share code, notes, and snippets.

@ryanflorence
Created November 25, 2011 17:47
Show Gist options
  • Save ryanflorence/1394062 to your computer and use it in GitHub Desktop.
Save ryanflorence/1394062 to your computer and use it in GitHub Desktop.
el.addEventListener('click', function openDialog(event) {
// open the dialog
});
el.addEventListener 'click', openDialog = (event) ->
# open the dialog
# no thanks
// what the coffeescript becomes
var openDialog;
el.addEventListener('click', openDialog = function(event) {
// open the dialog
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment