Skip to content

Instantly share code, notes, and snippets.

@re5et
Created February 21, 2013 19:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save re5et/5007212 to your computer and use it in GitHub Desktop.
Save re5et/5007212 to your computer and use it in GitHub Desktop.
Namespaced = {}
class Foo
constructor: ->
@property = 'i am Foo'
class Namespaced.Foo
constructor: ->
@property = 'i am Namespaced Foo'
method: ->
myFoo = new Foo
alert(myFoo.property)
new Namespaced.Foo().method()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment