Hi everyone: I am trying to create a namespace so I can use a class in different coffeescript files throughout my application (at least that is my understanding of what you use a namespace for)
I found a very good example here: Classes within Coffeescript 'Namespace'
excerpt:
namespace "Project.Something", (exports) ->
exports.MyFirstClass = MyFirstClass
exports.MySecondClass = MySecondClass
However, when I implement this, I am getting: namespace is not defined in my console.
My namespace is implemented exactly how it looks in the example above. It seems that my namespace definition is just not being recognized by coffeescript somehow.
any ideas? could there be a versioning issue here or something?
thanks in advance!!!