cfg.cn.push(ul);
}
- if (this.stype == 'return' && syn.returndesc.length) {
+ if (this.stype == 'return' && (syn.returndesc.length || syn.returntype.length )) {
cfg.cn.push({
tag: 'p',
'parameter' : 'Parameters',
'return' : 'Return Value',
'note' : 'Notes',
- 'example' : 'Examples'
+ 'example' : 'Examples',
+ 'throws' : 'Throws Exception'
}
/*
* - LGPL
* @cfg {String} stype (function|constant)
* @cfg {String} memberof class name
* @cfg {bool} is_static is a static member
+ * @cfg {bool} is_constructor is a static member
*
* @constructor
* Create a new Synopsis
returndesc : '',
name: '',
stype: 'function',
-
+ is_constructor : false,
+
getAutoCreate : function(){
var syn = this.items[0]; // hopefully...
this.memberof +
(this.is_static ? '::' : '->');
-
+ var nm = this.name;
// this should probably do the params....?? then we need to disable the rendering..
+ if (this.is_constructor) {
+
+ nm = this.memberof;
+ nmp = 'new ';
+ }
+
var cfg ={
tag: 'h5',
{
tag: 'strong',
cls : this.stype,
- html : this.name
+ html : nm
},
'(',
{