You will have to experiment (a lot), but ### comments are your friend.
The coffee-script compiler will store comments that use the form ### (docs here ).
I tried to create a really simple JsDoc fragment for a function using the "try coffeescript" function on the site:
foo = -> 'bar'
It gave:
var foo; foo = function() { return 'bar'; };
I am not an expert in JsDoc , but I assume the var foo; operator var foo; The above function will cause the problem. If you had foo before, maybee ..
It would be great to know how this happens.
Jacob Oscarson Oct. 20 '11 at 2:59 p.m. 2011-10-20 14:59
source share