Skip to content

Instantly share code, notes, and snippets.

@williamsbdev
Created January 26, 2013 01:33
Show Gist options
  • Save williamsbdev/4639510 to your computer and use it in GitHub Desktop.
Save williamsbdev/4639510 to your computer and use it in GitHub Desktop.
Including jQuery in your coffeeScript class.
NewClass = (($) ->
NewClass = (params) ->
@params = params
NewClass::someFunction = ->
console.log "do something"
NewClass
)(jQuery)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment