I'm having trouble using JSDoc3 to document code that's structured along these lines
/**
* @namespace MyNamespace.MySubNamespace
*/
(function (MyNamespace) {
MyNamespace.MySubNamespace.Foo = {
doSomething: function (someParam) {
// doing it
}
}
})(window.MyNamespace)
How would I use JSDoc3 to document that MyNamespace contains MySubNamespace which contains Foo? Further how would I associate doSomething with Foo and document its parameter someParam?
A limitation I have is that I can't add documentation to the file in which MyNamespace and MySubNamespace are declared.
Thanks much!