From: Alan Knowles Date: Wed, 26 Oct 2016 02:16:36 +0000 (+0800) Subject: roojs-doc.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=762ed7f408ea4f90f6545798be7f0f3704bf95a7 roojs-doc.js roojs-doc-debug.js --- diff --git a/roojs-doc-debug.js b/roojs-doc-debug.js index 841ebe4687..2ba7d6bba0 100644 --- 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); } - if (this.stype == 'return' && syn.returndesc.length) { + if (this.stype == 'return' && (syn.returndesc.length | syn.returntype.length )) { cfg.cn.push({ tag: 'p', diff --git a/roojs-doc.js b/roojs-doc.js index cb3c5f8c4e..f909685eaa 100644 --- a/roojs-doc.js +++ b/roojs-doc.js @@ -14,7 +14,7 @@ Roo.doc.Param=function(A){Roo.doc.Param.superclass.constructor.call(this,A);};Ro ;return B;},getAutoCreateParamSection:function(){var A=Roo.Markdown.toHtml(this.desc);return {tag:'li',cn:[{tag:'p',cls:'para',cn:[{tag:'code',html:this.type+' '+this.name},A]}]};}}); // Roo/doc/Section.js Roo.doc.Section=function(A){Roo.doc.Section.superclass.constructor.call(this,A);};Roo.extend(Roo.doc.Section,Roo.bootstrap.Component,{stype:'',getAutoCreate:function(){var A=Roo.factory(this.parent().items[0]);var B={cls:'refsection',cn:[{tag:'h3',cls:'title',html:Roo.doc.Section.map[this.stype]} -]};if(this.stype=='parameter'){var ul={tag:'ul',cls:'itemizedlist roo-params',cn:[]};var C=A.items;for(var i=0;i