Skip to content

Instantly share code, notes, and snippets.

@devrim
Created January 26, 2011 04:51
Show Gist options
  • Save devrim/796246 to your computer and use it in GitHub Desktop.
Save devrim/796246 to your computer and use it in GitHub Desktop.
class a
b:->
"foo"
class kdApi
constructor : (className,funcName) ->
if [className][funcName]
console.log "class and function exists"
else
console.log "no, it doesn't."
new kdApi "a","b"
# when i run this, it returns "no it doesn't"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment