projects
/
roojs1
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bezier test
[roojs1]
/
roojs-doc-debug.js
diff --git
a/roojs-doc-debug.js
b/roojs-doc-debug.js
index
6642098
..
d1a39ba
100644
(file)
--- a/
roojs-doc-debug.js
+++ b/
roojs-doc-debug.js
@@
-434,7
+434,7
@@
Roo.extend(Roo.doc.Section, Roo.bootstrap.Component, {
cfg.cn.push(ul);
}
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',
cfg.cn.push({
tag: 'p',
@@
-474,7
+474,8
@@
Roo.doc.Section.map = {
'parameter' : 'Parameters',
'return' : 'Return Value',
'note' : 'Notes',
'parameter' : 'Parameters',
'return' : 'Return Value',
'note' : 'Notes',
- 'example' : 'Examples'
+ 'example' : 'Examples',
+ 'throws' : 'Throws Exception'
}
/*
* - LGPL
}
/*
* - LGPL
@@
-491,6
+492,7
@@
Roo.doc.Section.map = {
* @cfg {String} stype (function|constant)
* @cfg {String} memberof class name
* @cfg {bool} is_static is a static member
* @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
*
* @constructor
* Create a new Synopsis
@@
-509,7
+511,8
@@
Roo.extend(Roo.doc.Synopsis, Roo.bootstrap.Component, {
returndesc : '',
name: '',
stype: 'function',
returndesc : '',
name: '',
stype: 'function',
-
+ is_constructor : false,
+
getAutoCreate : function(){
var syn = this.items[0]; // hopefully...
getAutoCreate : function(){
var syn = this.items[0]; // hopefully...
@@
-520,9
+523,15
@@
Roo.extend(Roo.doc.Synopsis, Roo.bootstrap.Component, {
this.memberof +
(this.is_static ? '::' : '->');
this.memberof +
(this.is_static ? '::' : '->');
-
+ var nm = this.name;
// this should probably do the params....?? then we need to disable the rendering..
// 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',
var cfg ={
tag: 'h5',
@@
-541,7
+550,7
@@
Roo.extend(Roo.doc.Synopsis, Roo.bootstrap.Component, {
{
tag: 'strong',
cls : this.stype,
{
tag: 'strong',
cls : this.stype,
- html :
this.name
+ html :
nm
},
'(',
{
},
'(',
{