You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1. Add the @constructor tag
2. Have no @method tags in your class
3. The constructor never appears in the output docs
What is the expected output? What do you see instead?
I expect to see the constructor listed in the "Public Methods" section
What version of the product are you using? On what operating system?
v1.0.131 on Windows Vista
Doing this works:
/**
* @class My.Class
* Description of My.Class
* @namespace My
* @extends Ext.util.Observable
* @constructor
* @param {string} myString Description of myString
*/
My.Class = function(myString){
/**
* @method
*/
this.myMethod = function() {};
};
Doing this does not work (no @method defined):
/**
* @class My.Class
* Description of My.Class
* @namespace My
* @extends Ext.util.Observable
* @constructor
* @param {string} myString Description of myString
*/
My.Class = function(myString){
this.myMethod = function() {};
};
Original issue reported on code.google.com by arthura...@gmail.com on 2 Jul 2009 at 6:06
The text was updated successfully, but these errors were encountered:
If you don't have a method with annotations in your class, then @constructor
will not
taken affect, I have a way to fix it.
Open class.xsl file in template folder, and find this line: '<!--Methods-->',
the
following lines before '<!--Events-->' is some logic about how to process method
annotations, then you can find these lines:
1. '</xsl:when>'
2. '<xsl:otherwise><div class="no-members">This class has no public
methods.</div></xsl:otherwise>'
3. '</xsl:choose>'.
Then replace No.2 line with these codes below:
<xsl:otherwise>
<xsl:if test="hasConstructor='true'">
<table cellspacing="0" class="member-table">
<tbody>
<tr>
<th colspan="2" class="sig-header">Method</th>
<th class="msource-header">Defined By</th>
</tr>
<xsl:call-template name="constructor"/>
</tbody>
</table>
</xsl:if>
<div class="no-members">This class has no public methods.</div>
</xsl:otherwise>
Save this file and rebuild your docs, then you can find your constructors.
Original comment by Super...@gmail.com on 5 Aug 2009 at 6:15
Original issue reported on code.google.com by
arthura...@gmail.com
on 2 Jul 2009 at 6:06The text was updated successfully, but these errors were encountered: