From 9460b805f5528ac6a5586914b6efdb8977a9faec Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 26 Oct 2016 10:16:58 +0800 Subject: [PATCH] Roo/doc/Section.js roojs-doc.js roojs-doc-debug.js --- Roo/doc/Section.js | 2 +- roojs-doc-debug.js | 2 +- roojs-doc.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Roo/doc/Section.js b/Roo/doc/Section.js index a257428f1a..82caba56bb 100644 --- a/Roo/doc/Section.js +++ b/Roo/doc/Section.js @@ -58,7 +58,7 @@ Roo.extend(Roo.doc.Section, Roo.bootstrap.Component, { cfg.cn.push(ul); } - if (this.stype == 'return' && (syn.returndesc.length | syn.returntype.length )) { + if (this.stype == 'return' && (syn.returndesc.length || syn.returntype.length )) { cfg.cn.push({ tag: 'p', diff --git a/roojs-doc-debug.js b/roojs-doc-debug.js index 2ba7d6bba0..d1a39ba30c 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 | syn.returntype.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 f909685eaa..06ff86b780 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