Skip to content

Instantly share code, notes, and snippets.

@matthooks
Created November 16, 2011 23:15
Show Gist options
  • Save matthooks/1371826 to your computer and use it in GitHub Desktop.
Save matthooks/1371826 to your computer and use it in GitHub Desktop.
# BAD
function1 = ->
console.log('stuff')
$(function1)
function2 = (parameter1) ->
console.log(parameter1)
$(function2)
# BETTER
function1 = ->
console.log('stuff')
function2 = (parameter1) ->
console.log(parameter1)
jQuery ->
function1()
function2()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment