have the following CoffeeScript module named Course. I have a small piece of code which I would like to re-use, I have created a method called preSelectItemSize.
I would like to call this method when init is called and also within the afterShow Fancybox callback. The following code works, but it don't believe it is correct to use the module name and I should be using the @ reference to "this" instead.
What am I doing wrong? (Code snippet reduced for brevity)
https://gist.github.com/crmpicco/11e14655a17419983f2f