Re: [Jsdoc-user] How to reference classes in other files
Status: Inactive
Brought to you by:
mmathews
From: Gabriel R. <gab...@gm...> - 2005-12-22 20:25:56
|
On Tue, Dec 20, 2005 at 05:10:08PM -0800, Sergio Pinon wrote: > Please forgive me if this has already been answered before. I am new to this group. I was trying to figure out how to show that the subclassed object is in another file and when the user clicks that object it clicks to the other file. So here is how my files look > > > File A: > > function _Class1() > > { > > this.Class2= _ Class2(); > > } > > > > > > File B: > > function _ Class2() > > { > > this.Class2Method = function () > > { > > //statement here > > } > > } > > > > Class1. Class2.FileBMethod() > > > > How can I show this relationship with JSDOC. I can't seem to figure this out. > I'm not clear on the relationship that you're trying to show with JSDoc. What do you mean with "it clicks to the other file"? In any case, I think you'll get better results by adding a JSDoc comment block with the @constructor tag in it above each of the constructor functions in the above code (_Class1 and _Class2). If that doesn't get you what you need, could you try explaining more about the relationship that you want JSDoc to show? Regards, Gabriel |