[Jsdoc-user] Argument list turns up empty-()- if constructor is assigned to static functions
Status: Inactive
Brought to you by:
mmathews
From: Raymond A. O. <ra...@op...> - 2006-03-06 09:22:24
|
Hello: In order to prevent collisions with other JavaScript libraries I like to prefix all public classes and functions with two static functions like (org.ui). When I do that, the (a,b) constructor arguments as in the example below do not show up under Constructor Summary or Detail. Other than that, everything about the class shows up perfectly in JSDoc. This example duplicates this behavior. //start example function org(){} function ui(){} org.ui=ui; /** * Arguments do not show up in Constructor Summary. * @param a Describe a. * @param b Describe b. * @constructor */ org.ui.CreateDrop=function(a,b){} /** * Arguments do show up in Constructor Summary. * @param a Describe a. * @param b Describe b. * @constructor */ function ShowDrop(a,b){} //end example Here is a snapshot of xml output: ----------- <class name="org.ui.CreateDrop" > <constructor_args>()</constructor_args> ----------- <class name="ShowDrop" > <constructor_args>(a,b)</constructor_args> Any ideas on a workaround or fix? JSDoc is so close on this one. Gabriel and Michael, thanks for creating this product. Ray |